Branching a repository?
Neil Martinsen-Burrell
nmb at wartburg.edu
Tue Jun 16 01:44:23 BST 2009
On 2009-06-15 15:27 , J. Bobby Lopez wrote:
> Is it possible to create branch of a shared repository?
>
> For example, I create a shared repository:
>
> bzr init-repo --trees /newrepo
>
>
> now in '/newrepo', create branches from other projects:
>
> cd /newrepo
> bzr branch ../../../someproject1 ./someproject1
> bzr branch ../../../someproject1 ./someproject1
>
>
> Now what I want to do, is create a branch of this share repository
> somewhere else:
>
> cd /
> bzr branch /newrepo /newrepo2 # <---- Is something like this possible?
>
> Is it possible branch off an entire shared repository?
There is no command for that in bzr that I know of. I believe that
filesystem copying is sufficient for getting consistent bzr branches and
repositories, so you should be able to ``cp -r newrepo newrepo2`` to get
copies of all of the branches and the shared repository structure.
Alternately, if you wanted to use Bazaar to do this, you could create a
new shared repository and iteratively branch each branch to the new
repository. The ``bzr branches`` command from the bzrtools plugin is
handy for this kind of thing.
-Neil
More information about the bazaar
mailing list