Redirect working copy to a branch

Asked by Woomla

Hi,

I'm used in subversion to have a repository on a server with one trunk location and a branches location with several (a lot) branches in it. These are all smart copies so only changes are stored in the repository.

On my worksystem(s) I have a WorkingCopy directory that points to either the trunk or a branch. I can switch the location with the svn switch command. This allows me to have one checkout of the complete repository.

So far as I understand, if I branch in Bazaar, I get a full copy of the code. If I would do this with my subversion repository, my hard disk will soon be full, and it takes about 10-15 minutes to do a complete checkout.

Is there any way to have a bazaar WorkingCopy bound to trunk or a branch? So I can switch (bind?) to another one. I would like to have my Bazaar repository set up as distributed repositories with a central server for backup and for other teammembers and/or worksystems, but I cannot fnd a way to have only one (or maybe two) complete checkouts in stead of a complete checkout for every branch.

(In the end I want to have a, more or less, stable trunk, some stable developer branches on the server, and feature branches locally and if necessary also on the server).

Question information

Language:
English Edit question
Status:
Solved
For:
Bazaar Edit question
Assignee:
No assignee Edit question
Solved by:
Martin Pool
Solved:
Last query:
Last reply:
Revision history for this message
Best Martin Pool (mbp) said :
#1

Yes, you can get a setup a lot like bzr by, on the server:

  bzr init-repo repo
  bzr init repo/trunk

then on the client

  bzr checkout bzr+ssh://server/repo/trunk work
  cd work
  bzr switch ....

Revision history for this message
Woomla (woomla) said :
#2

Thanks Martin Pool, that solved my question.