/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 bzrlib/vf_repository.py

  • Committer: Martin Pool
  • Date: 2011-06-14 02:21:41 UTC
  • mto: This revision was merged to the branch mainline in revision 6001.
  • Revision ID: mbp@canonical.com-20110614022141-18hmm7s0iw3utcbj
Deprecate __contains__ on Tree and Inventory

Show diffs side-by-side

added added

removed removed

Lines of Context:
278
278
 
279
279
    def _get_delta(self, ie, basis_inv, path):
280
280
        """Get a delta against the basis inventory for ie."""
281
 
        if ie.file_id not in basis_inv:
 
281
        if not basis_inv.has_id(ie.file_id):
282
282
            # add
283
283
            result = (None, path, ie.file_id, ie)
284
284
            self._basis_delta.append(result)
397
397
                # this masks when a change may have occurred against the basis.
398
398
                # To match this we always issue a delta, because the revision
399
399
                # of the root will always be changing.
400
 
                if ie.file_id in basis_inv:
 
400
                if basis_inv.has_id(ie.file_id):
401
401
                    delta = (basis_inv.id2path(ie.file_id), path,
402
402
                        ie.file_id, ie)
403
403
                else:
422
422
        head_set = self._heads(ie.file_id, parent_candiate_entries.keys())
423
423
        heads = []
424
424
        for inv in parent_invs:
425
 
            if ie.file_id in inv:
 
425
            if inv.has_id(ie.file_id):
426
426
                old_rev = inv[ie.file_id].revision
427
427
                if old_rev in head_set:
428
428
                    heads.append(inv[ie.file_id].revision)
3070
3070
        # the parents inserted are not those commit would do - in particular
3071
3071
        # they are not filtered by heads(). RBC, AB
3072
3072
        for revision, tree in parent_trees.iteritems():
3073
 
            if ie.file_id not in tree:
 
3073
            if not tree.has_id(ie.file_id):
3074
3074
                continue
3075
3075
            parent_id = tree.get_file_revision(ie.file_id)
3076
3076
            if parent_id in text_parents: