/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:
97
97
    def has_filename(self, filename):
98
98
        return bool(self.inventory.path2id(filename))
99
99
 
100
 
    def list_files(self):
 
100
    def list_files(self, include_root=False):
101
101
        # The only files returned by this are those from the version
102
102
        entries = self.inventory.iter_entries()
103
 
        # skip the root for compatability with the current apis.
104
 
        entries.next()
 
103
        if 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