/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

Merge bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
 
50
50
        A RevisionTree's parents match the revision graph.
51
51
        """
52
 
        if self._revision_id == revision.NULL_REVISION:
53
 
            return []
 
52
        if self._revision_id in (None, revision.NULL_REVISION):
 
53
            parent_ids = []
54
54
        else:
55
55
            parent_ids = self._repository.get_revision(
56
56
                self._revision_id).parent_ids
98
98
    def has_filename(self, filename):
99
99
        return bool(self.inventory.path2id(filename))
100
100
 
101
 
    def list_files(self):
 
101
    def list_files(self, include_root=False):
102
102
        # The only files returned by this are those from the version
103
103
        entries = self.inventory.iter_entries()
104
 
        # skip the root for compatability with the current apis.
105
 
        entries.next()
 
104
        if not include_root:
 
105
            # skip the root for compatability with the current apis.
 
106
            entries.next()
106
107
        for path, entry in entries:
107
108
            yield path, 'V', entry.kind, entry.file_id, entry
108
109