/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/revisiontree.py

  • Committer: Aaron Bentley
  • Date: 2006-11-17 04:06:03 UTC
  • mfrom: (2139 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2162.
  • Revision ID: aaron.bentley@utoronto.ca-20061117040603-pgebxndswvwk26tt
Merge from bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
        self._repository = branch
41
41
        self._weave_store = branch.weave_store
42
42
        self._inventory = inv
43
 
        assert inv.root is not None
44
43
        self._revision_id = revision_id
45
44
 
46
45
    def get_parent_ids(self):
97
96
    def has_filename(self, filename):
98
97
        return bool(self.inventory.path2id(filename))
99
98
 
100
 
    def list_files(self):
 
99
    def list_files(self, include_root=False):
101
100
        # The only files returned by this are those from the version
102
101
        entries = self.inventory.iter_entries()
103
102
        # skip the root for compatability with the current apis.
104
 
        entries.next()
 
103
        if self.inventory.root is not None and not include_root:
 
104
            # skip the root for compatability with the current apis.
 
105
            entries.next()
105
106
        for path, entry in entries:
106
107
            yield path, 'V', entry.kind, entry.file_id, entry
107
108