Hello,
I have an old bzr repository in "dirstate-with-subtrees" format. Recently after moving to bzr 2.0.1 (ubuntu 9.10) I tried upgrading it to 2a but was unable to do so. Even though bzr indicates I should run 'bzr upgrade' it fails. I also tried a bunch of other formats (rich-root-pack, 1.14-rich-root) but that also failed.
[sa]% bzr info
Format <RepositoryFormatKnit3> for file:///storage/parth/code/sa/.bzr/ is deprecated - please use 'bzr upgrade' to get better performance
Standalone tree (format: dirstate-with-subtree)
Location:
branch root: .
Related branches:
push branch:
[sa]% bzr upgrade
Format <RepositoryFormatKnit3> for file:///storage/parth/code/sa/.bzr/ is deprecated - please use 'bzr upgrade' to get better performance
bzr: ERROR: Cannot convert from format <RepositoryFormatKnit3> to format <RepositoryFormat2a>. Does not support nested trees
[sa]% bzr upgrade --2a
Format <RepositoryFormatKnit3> for file:///storage/parth/code/sa/.bzr/ is deprecated - please use 'bzr upgrade' to get better performance
bzr: ERROR: Cannot convert from format <RepositoryFormatKnit3> to format <RepositoryFormat2a>. Does not support nested trees
[sa]% bzr upgrade --rich-root-pack
Format <RepositoryFormatKnit3> for file:///storage/parth/code/sa/.bzr/ is deprecated - please use 'bzr upgrade' to get better performance
bzr: ERROR: Cannot convert from format <RepositoryFormatKnit3> to format <RepositoryFormatKnitPack4>. Does not support nested trees
[sa]% bzr upgrade --1.14-rich-root
Format <RepositoryFormatKnit3> for file:///storage/parth/code/sa/.bzr/ is deprecated - please use 'bzr upgrade' to get better performance
bzr: ERROR: Cannot convert from format <RepositoryFormatKnit3> to format <RepositoryFormatKnitPack6RichRoot>. Does not support nested trees
[sa]%
The repository is also available at https://launchpad.net/~parthm/+junk/sa
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Parth Malwankar wrote: with-subtrees" format.
> Public bug reported:
>
> Hello,
>
> I have an old bzr repository in "dirstate-
> Recently after moving to bzr 2.0.1 (ubuntu 9.10) I tried upgrading it to
> 2a but was unable to do so. Even though bzr indicates I should run 'bzr
> upgrade' it fails. I also tried a bunch of other formats (rich-root-
> pack, 1.14-rich-root) but that also failed.
Specifically, you are using a format that has the "supports subtrees"
flag set. Looking at the repository, it doesn't seem like you are
actually making use of that fact, though.
If you just want to get converted, you can apply this patch, do the
upgrade, and then revert the patch.
(I know launchpad will mess up the indentation, but the patch is pretty
trivial.)
=== modified file 'bzrlib/ repofmt/ groupcompress_ repo.py' repofmt/ groupcompress_ repo.py 2009-10-23 17:27:45 +0000 repofmt/ groupcompress_ repo.py 2009-11-12 21:00:24 +0000
- --- bzrlib/
+++ bzrlib/
@@ -1275,6 +1275,7 @@
"""
_serializer = chk_serializer. chk_bencode_ serializer tree_reference = True
+ supports_
def _get_matching_ bzrdir( self): format_ registry. make_bzrdir( '2a')
return bzrdir.
At the moment, there is no upgrade path from '--dirstate- with-subtrees'
because it was mainly an experimental feature (it certainly was never a
default format.) We had hoped that 'subtree' support would be sufficient
to enable it in --2a formats, but we did not get there.
Note that if you do this, *you* have to be careful to check that you
aren't actually using tree references. (Most likely you aren't, since
they don't really work yet.)
John enigmail. mozdev. org/
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://
iEYEARECAAYFAkr 8eCIACgkQJdeBCY SNAAMELgCcCElTi 8n+xK42YfuP8kPr 1occ VSIrcLsUe1Np5Ga fi
L9gAoNVM2wn2jPF
=GYJS
-----END PGP SIGNATURE-----