~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/repository.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:
605
605
        # TODO: refactor this to use an existing revision object
606
606
        # so we don't need to read it in twice.
607
607
        if revision_id is None or revision_id == _mod_revision.NULL_REVISION:
608
 
            return RevisionTree(self, Inventory(), _mod_revision.NULL_REVISION)
 
608
            return RevisionTree(self, Inventory(root_id=None), 
 
609
                                _mod_revision.NULL_REVISION)
609
610
        else:
610
611
            inv = self.get_revision_inventory(revision_id)
611
612
            return RevisionTree(self, inv, revision_id)