Creating a new branch based off sub-directory of an existing branch?
John Arbash Meinel
john at arbash-meinel.com
Mon Aug 24 21:18:10 BST 2009
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
keith321 wrote:
> Hi Phillipe,
>
> Thanks for the suggestion. The split command looks like it would be perfect
> for what I want to do. Unfortunately, it seems to only be supported by
> alternative bzr storage formats. When I attempted to use the command, an
> error occured:
>
> $ bzr split my-subdir
> bzr: ERROR: To use this feature you must upgrade your branch at file:///...
> to a format which supports rich roots.
>
> Since I don't know enough about the different formats, and since it also
> seems like they are still in the developmental phase
> (http://doc.bazaar-vcs.org/latest/developers/development-repo.html#format-details),
> I think for now I will just stick with the less attractive method of
> branching and deleting.
>
> Thanks for the suggestion!
>
> Take care,
> Keith
Just to let you know "bzr split" is implemented as:
1) Create a new branch
2) Delete everything but the sub directory
3) Move the subdirectory to become the new root directory
(aka, move all the items in the subdir to the root)
So it does ~ the same as doing it manually, with the same caveats (you
continue to carry around the full history of all files, etc.)
John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkqS9YIACgkQJdeBCYSNAAPF+ACgzFl8+t3ht01jw0H01ZgAEdgD
18sAn2fIl+ww6AaHwTIWYirxH/EgzsAR
=16J7
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list