~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/revisiontree.py

  • Committer: Aaron Bentley
  • Date: 2006-09-28 01:53:23 UTC
  • mfrom: (2049 +trunk)
  • mto: (1731.2.8 nested-trees)
  • mto: This revision was merged to the branch mainline in revision 2078.
  • Revision ID: aaron.bentley@utoronto.ca-20060928015323-4e7367532c857e87
Merge from bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
96
96
    def has_filename(self, filename):
97
97
        return bool(self.inventory.path2id(filename))
98
98
 
99
 
    def list_files(self, include_root=True):
 
99
    def list_files(self, include_root=False):
100
100
        # The only files returned by this are those from the version
101
101
        entries = self.inventory.iter_entries()
102
102
        # skip the root for compatability with the current apis.
103
 
        if self.inventory.root is None or not include_root:
 
103
        if self.inventory.root is not None and not include_root:
 
104
            # skip the root for compatability with the current apis.
104
105
            entries.next()
105
106
        for path, entry in entries:
106
107
            yield path, 'V', entry.kind, entry.file_id, entry