/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/bundle/bundle_data.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2018-03-25 11:54:30 UTC
  • mfrom: (6855.4.10 more-bees)
  • Revision ID: breezy.the.bot@gmail.com-20180325115430-75xnlbrmzjoomd83
Add more bees. In particular:

* for file ids
* for revision ids
* for file contents in build_tree_contents()

Merged from https://code.launchpad.net/~jelmer/brz/more-bees/+merge/337919

Show diffs side-by-side

added added

removed removed

Lines of Context:
286
286
        if rev.revision_id != revision_id:
287
287
            raise AssertionError()
288
288
        if sha1 != rev.inventory_sha1:
289
 
            f = open(',,bogus-inv', 'wb')
290
 
            try:
 
289
            with open(',,bogus-inv', 'wb') as f:
291
290
                f.write(s)
292
 
            finally:
293
 
                f.close()
294
291
            warning('Inventory sha hash mismatch for revision %s. %s'
295
292
                    ' != %s' % (revision_id, sha1, rev.inventory_sha1))
296
293