bzr error - KnitCorrupt

John Arbash Meinel john at arbash-meinel.com
Thu Aug 9 16:53:37 BST 2007


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

Ralph Douglass wrote:
> Is there a way to run a repair of some sort?  I can still get patch
> diffs, but I can't rollback the corrupted patches.  Maybe something like
> a --forced-rollback which would overcome the error and discard the
> busted patches?

Can you do:

bzr branch -r 25 existing new

That would at least let you create a new branch which doesn't reference
those revisions.

If you have the data available from another location, we could try to
remove them from the local repository, and then do another
'pull/merge/fetch' to get them copied over again.

Generally when "removing" revisions like this, we can just remove the
entry in the index, and then it will be considered unavailable. We would
want to track down exactly what is wrong, though.

It is a bit easier to do on IRC than trying to email back and forth.
- From your comments, it seems to be corruption in
.bzr/repository/revisions.knit

We could have those revisions be ignored by removing the correct entries
from .bzr/repository/revisions.kndx

I think it would be best to remove all entries following them, because
we have some code that expects that if revision X is present, then
ancestors of that revision are also present.

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

iD8DBQFGuziBJdeBCYSNAAMRAjEZAJ9ugjQMV5+1lzVHcnmqchtihK1RcgCeIStm
G8rLGootApu60ou4WLVeUHU=
=xbgx
-----END PGP SIGNATURE-----



More information about the bazaar mailing list