Rev 4355: Remove duplicate ids check from check, such errors are either masked by deserialisers or caught lower down. in http://people.ubuntu.com/~robertc/baz2.0/check
Robert Collins
robertc at robertcollins.net
Tue May 12 09:04:54 BST 2009
At http://people.ubuntu.com/~robertc/baz2.0/check
------------------------------------------------------------
revno: 4355
revision-id: robertc at robertcollins.net-20090512080451-f6egga3vbw0zzs3u
parent: robertc at robertcollins.net-20090512072733-5ihm1n04rgqs4eye
committer: Robert Collins <robertc at robertcollins.net>
branch nick: check
timestamp: Tue 2009-05-12 18:04:51 +1000
message:
Remove duplicate ids check from check, such errors are either masked by deserialisers or caught lower down.
=== modified file 'bzrlib/check.py'
--- a/bzrlib/check.py 2009-05-12 07:27:33 +0000
+++ b/bzrlib/check.py 2009-05-12 08:04:51 +0000
@@ -341,16 +341,10 @@
self._report_items.append(
"Missing inventory for revision {%s}" % rev_id)
inv = tree.inventory
- seen_ids = set()
seen_names = set()
for path, ie in inv.iter_entries():
self._add_entry_to_text_key_references(inv, ie)
file_id = ie.file_id
- if file_id in seen_ids:
- raise BzrCheckError('duplicated file_id {%s} '
- 'in inventory for revision {%s}'
- % (file_id, rev_id))
- seen_ids.add(file_id)
ie.check(self, rev_id, inv, tree)
if path in seen_names:
raise BzrCheckError('duplicated path %s '
More information about the bazaar-commits
mailing list