~ubuntu-branches/debian/experimental/bzr/experimental

« back to all changes in this revision

Viewing changes to bzrlib/tree.py

  • Committer: Bazaar Package Importer
  • Author(s): Jelmer Vernooij, James Westby, Jelmer Vernooij
  • Date: 2009-09-08 14:14:23 UTC
  • mfrom: (1.1.59 upstream)
  • Revision ID: james.westby@ubuntu.com-20090908141423-ilpel5hy4vxhzxrl
Tags: 1.18-1
[ James Westby ]
* New upstream release.

[ Jelmer Vernooij ]
* Bump standards version to 3.8.3.
* Remove unused patch system.

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):
220
218
    def path_content_summary(self, path):
221
219
        """Get a summary of the information about path.
222
220
 
 
221
        All the attributes returned are for the canonical form, not the
 
222
        convenient form (if content filters are in use.)
 
223
 
223
224
        :param path: A relative path within the tree.
224
225
        :return: A tuple containing kind, size, exec, sha1-or-link.
225
226
            Kind is always present (see tree.kind()).
226
 
            size is present if kind is file, None otherwise.
 
227
            size is present if kind is file and the size of the 
 
228
                canonical form can be cheaply determined, None otherwise.
227
229
            exec is None unless kind is file and the platform supports the 'x'
228
230
                bit.
229
231
            sha1-or-link is the link target if kind is symlink, or the sha1 if
825
827
        new_pending = set()
826
828
        for file_id in pending:
827
829
            for tree in trees:
828
 
                if not tree.has_id(file_id):
 
830
                if not tree.has_or_had_id(file_id):
829
831
                    continue
830
832
                for child_id in tree.iter_children(file_id):
831
833
                    if child_id not in interesting_ids: