/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/plugins/repodebug/file_refs.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2018-03-25 02:43:53 UTC
  • mfrom: (6915.4.4 inv-not-dict)
  • Revision ID: breezy.the.bot@gmail.com-20180325024353-kklb16a8is4jaez7
Remove the __getitem__, __iter__ and __delitem__ implementations from Inventory.

Instead, add .get_entry(), .all_file_ids() and .delete().

Merged from https://code.launchpad.net/~jelmer/brz/inv-not-dict/+merge/342053

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
        # print len(all_invs)
43
43
        for inv in repo.iter_inventories(all_invs, 'unordered'):
44
44
            try:
45
 
                entry = inv[file_id]
 
45
                entry = inv.get_entry(file_id)
46
46
            except errors.NoSuchId:
47
47
                # This file doesn't even appear in this inv.
48
48
                continue