278
278
if rev.revision_id != revision_id:
280
280
if sha1 != rev.inventory_sha1:
281
open(',,bogus-inv', 'wb').write(s)
281
f = open(',,bogus-inv', 'wb')
282
286
warning('Inventory sha hash mismatch for revision %s. %s'
283
287
' != %s' % (revision_id, sha1, rev.inventory_sha1))
285
289
def _validate_revision(self, inventory, revision_id):
286
290
"""Make sure all revision entries match their checksum."""
291
295
rev = self.get_revision(revision_id)