~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tree.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-07-22 01:36:42 UTC
  • mfrom: (4544.2.2 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20090722013642-hejy07x9ub06tioj
(robertc) Add interface enforcement for the behaviour of iter_changes
        with missing subtrees with explicit paths - the whole subtree
        is returned. (Robert Collins)

Show diffs side-by-side

added added

removed removed

Lines of Context:
133
133
        return self.has_id(file_id)
134
134
 
135
135
    def has_or_had_id(self, file_id):
136
 
        if file_id == self.inventory.root.file_id:
137
 
            return True
138
136
        return self.inventory.has_id(file_id)
139
137
 
140
138
    def is_ignored(self, filename):
825
823
        new_pending = set()
826
824
        for file_id in pending:
827
825
            for tree in trees:
828
 
                if not tree.has_id(file_id):
 
826
                if not tree.has_or_had_id(file_id):
829
827
                    continue
830
828
                for child_id in tree.iter_children(file_id):
831
829
                    if child_id not in interesting_ids: