BZR and Dropbox

Asked by Stephen on 2014-11-26

Hey,

I set up my folders for some long term Python work on Dropbox so that I can work on it from home and at work (both Win7) with very little issue. As this is a fairly important project I installed BZR and have version controlled the entire project. Everything seemed fine until I tried to use BZR from my home PC (I set it all up at work). The path is different from one PC to the next as the location of Dropbox varies very slightly. This isn't a problem for my Python scripts as I can put an if statement in to switch automatically. But for BZR... I'm a little lost.

Is there a way I can either give my BZR two paths? I also read something about not having a working-tree path, but wasn't sure if that's the solution for my problem, and don't know how to implement it properly.

Ideally I'd be able to solve this issue without having to redo the set-up of BZR; but this isn't insurmountable. Likewise, if it's not possible it's not the end of the world as I can still edit the files, I just can only commit from the work PC.

Also, just as a quick disclaimer, I know I could (or perhaps should) just have local branches that I commit back to a parent. But I've set it up like this as I never know where I'll be at any given time so this allows me complete flexibility to start working from another location at the drop of a hat.

Thanks for the help and any questions I'd be happy to answer.

Question information

Language:
English Edit question
Status:
Expired
For:
Bazaar Edit question
Assignee:
No assignee Edit question
Last query:
2014-11-26
Last reply:
2014-12-12
Launchpad Janitor (janitor) said : #1

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Bruce Mutton (dangle) said : #2

Stephen See the question and answer 209597 Is dropbox suitable as centralised bazaar storage?

If you are working alone, i think dropbox would be OK (it worked for a pair of us provided we were careful not to work on the dropbox repo simultaneously).

BUT you should have a repo on each machine as well as a central one on dropbox.
I would suggest that the repo on dropbox be -no-trees to avoid the temptation to work directly on it, and avoid the problem you describe with bzr's control files getting confused by the different machines working on the same repo.

From each machine you only push and pull to and from the dropbox repo, and all edits are done locally (not on the dropbox locally mirrored files).

Vincent Ladeuil (vila) said : #3

https://launchpad.net/~dangle answer is very good and provides a link to another answer from a different point of view:

Stephen See the question and answer https://answers.launchpad.net/bzr/+question/209597 : "Is dropbox suitable as centralised bazaar storage?".

If you are working alone, i think dropbox would be OK (it worked for a pair of us provided we were careful not to work on the dropbox repo simultaneously).

BUT you should have a repo on each machine as well as a central one on dropbox.
I would suggest that the repo on dropbox be -no-trees to avoid the temptation to work directly on it, and avoid the problem you describe with bzr's control files getting confused by the different machines working on the same repo.

From each machine you only push and pull to and from the dropbox repo, and all edits are done locally (not on the dropbox locally mirrored files).
FAQ #2616: “BZR and Dropbox”.