~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/revisiontree.py

  • Committer: John Arbash Meinel
  • Date: 2006-08-14 16:16:53 UTC
  • mto: (1946.2.6 reduce-knit-churn)
  • mto: This revision was merged to the branch mainline in revision 1919.
  • Revision ID: john@arbash-meinel.com-20060814161653-54cdcdadcd4e9003
Remove bogus entry from BRANCH.TODO

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
 
48
48
        A RevisionTree's parents match the revision graph.
49
49
        """
50
 
        if self._revision_id not in (None, 'null:'):
51
 
            parent_ids = self._repository.get_revision(
52
 
                self._revision_id).parent_ids
53
 
        else:
54
 
            parent_ids = []
 
50
        parent_ids = self._repository.get_revision(self._revision_id).parent_ids
55
51
        return parent_ids
56
52
        
57
53
    def get_revision_id(self):
96
92
    def has_filename(self, filename):
97
93
        return bool(self.inventory.path2id(filename))
98
94
 
99
 
    def list_files(self, include_root=False):
 
95
    def list_files(self):
100
96
        # The only files returned by this are those from the version
101
97
        entries = self.inventory.iter_entries()
102
98
        # skip the root for compatability with the current apis.
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()
 
99
        entries.next()
106
100
        for path, entry in entries:
107
101
            yield path, 'V', entry.kind, entry.file_id, entry
108
102