converting a dirstate-with-subtrees branch to dirstate

Aaron Bentley aaron.bentley at utoronto.ca
Tue Nov 13 07:12:02 GMT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Adam Mercer wrote:
> I have a dirstate-with-subtrees branch that was converted from a svn
> repository using bzr-svn that doesn't have any subtrees in it.  Is it
> possible to convert this branch to the regular dirstate branch format?

Not really.  Subtrees are not the only difference in the
dirstate-with-subtrees format; they also have more detailed data about
the tree root.

> bzr: ERROR: Cannot convert to format <RepositoryFormatKnit1>.  Does
> not support rich root data.

That's what this error is telling you.

This more detailed root data is the reason Jelmer chose to use this
format for bzr-svn-- it can't be represented in a dirstate repository.
A lossy conversion would violate referential integrity.

You might be able to use rebase to convert it, which would assign new
ids and mean that you couldn't merge from the original svn branch.

Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHOU5C0F+nu1YWqI0RAuxTAJ0VKjH3T1orN0rQl97jzmxwyqfLKQCfeAGG
wcCUrEMguakM9KpYmxZBDCw=
=Eawl
-----END PGP SIGNATURE-----



More information about the bazaar mailing list