O'Reilly logo

Bazaar Version Control by Janos Gyerik

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Re-using a working tree

Very often, it can be useful to re-use a working tree to work on multiple branches.

  • If the working tree is very large, it can be a waste of disk space and difficult to have multiple working trees at the same time
  • If the project requires complicated configuration per working tree, then it can be troublesome and inefficient to repeat the setup procedure for every branch

Re-using a working tree is a matter of organizing your local branches in a certain way:

  • Configure a shared repository to not create working trees by default
  • Create only a single branch with a working tree, in other words a checkout, keeping all other branches tree-less
  • Switch the associated branch of the checkout by using bzr bind followed by bzr update and bzr ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required