1.3rc1 bzr upgrade -- bzrlib.errors.KnitCorrupt

John Arbash Meinel john at arbash-meinel.com
Sat Mar 22 14:09:45 GMT 2008


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

Jari Aalto wrote:
| I got this after trying to use "bzr upgrade" on directory
|
|     bzr.dev-http/
|
| Now the format says:
|
|    Standalone tree (format: unnamed)
|
| Let me know how can I help,
| Jari
|

...

KnitCorrupt(Knit <bzrlib.knit._KnitAccess object at 0x7f18b60c> corrupt:
unexpected version,
wanted 'robertc at robeztcollins.net-20060725062142-a8ba77276b76c8cf',
~   got 'robertc at robertcollins.net-20060725062142-a8ba77276b76c8cf')
~                   ^^^
This looks like you have some small corruption in your .kndx file. Specifically,
you have a 'z' where I would expect an 'r'.

What is happening is that we are checking the index, and then cross referencing
with the string stored in the .knit file, and obviously they don't match.

You should be able to just edit the .kndx file and replace the 'z' with an 'r'.

Unfortunately it isn't clear which file this is, but if you just do:

find .bzr/repository -name '*.kndx' -print0 | xargs -0 grep "robeztcollins.net"

It should point it out quickly.

Odd, though, I thought "_KnitAccess" was better about printing out the path to
the file in question.

John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFH5RMpJdeBCYSNAAMRApRGAJ9aXrFqwKeVdiCv32RW3Lei4ey/lQCfYkF6
y5/40ngVS22q4zw1J4zjsow=
=leHR
-----END PGP SIGNATURE-----



More information about the bazaar mailing list