~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/revisiontree.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-09-27 20:27:46 UTC
  • mfrom: (1910.2.66 format-bumps)
  • Revision ID: pqm@pqm.ubuntu.com-20060927202746-942eb21d12b7edc7
Add support for bundles and testaments with roots

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