~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-10-15 16:32:29 UTC
  • mfrom: (1731.1.67 unique-root)
  • Revision ID: pqm@pqm.ubuntu.com-20061015163229-648b1f2ebe692136
New trees have unique root ids

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):
100
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
 
        if not include_root:
 
102
        # skip the root for compatability with the current apis.
 
103
        if self.inventory.root is not None and not include_root:
104
104
            # skip the root for compatability with the current apis.
105
105
            entries.next()
106
106
        for path, entry in entries: