286
282
so build up an inventory, and make sure the hashes match.
288
284
# Now we should have a complete inventory entry.
291
287
# Target revision is the last entry in the real_revisions list
292
288
rev = self.get_revision(revision_id)
293
289
if rev.revision_id != revision_id:
295
291
if sha1 != rev.inventory_sha1:
296
292
with open(',,bogus-inv', 'wb') as f:
298
294
warning('Inventory sha hash mismatch for revision %s. %s'
299
295
' != %s' % (revision_id, sha1, rev.inventory_sha1))
304
297
def _validate_revision(self, tree, revision_id):
305
298
"""Make sure all revision entries match their checksum."""