[MERGE] Detect versionedfile ancestries with unreferenced ancestors
Aaron Bentley
aaron.bentley at utoronto.ca
Fri Aug 24 19:28:58 BST 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi all,
This patch introduces Repository.find_bad_ancestors, which detects the
kind of corruption that prevents fileids_altered_by_revision_ids for
correctly determining which revisions are needed.
Say we have Revision 1. Its parents are revision 2 and 3. Its
inventory has a "revision" value of 1-t for a given file.
Say the "revision" value for that file in 2 is 2-t, and 3-t for 3.
The only legitimate versionedfile parent values for revision 1-t are 2-t
and 3-t. The versionedfile may not indicate any other revisions as
parents for 1-t.
This is what my patch detects. It does not attempt to detect other
problems because pragmatically, we need to fix this particular kind of
corruption soon, so we can make fetch more efficient.
Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGzyNq0F+nu1YWqI0RAgVXAJ0VABQNDBBWs4y8nLjPhLuskR0YpACfSbO1
TOZN01bPXbcT2W0/dAC0WBk=
=WpVa
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bzr-mail-dUKASj.patch
Type: text/x-patch
Size: 27847 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20070824/6c3ce463/attachment-0001.bin
More information about the bazaar
mailing list