~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/branch.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-11-13 17:48:49 UTC
  • mfrom: (2946.3.5 tree_root_id)
  • Revision ID: pqm@pqm.ubuntu.com-20071113174849-2zsajpakcs8uy1bo
(John Arbash Meinel) Consolidate all calls to get the root id of a tree to use Tree.get_root_id()

Show diffs side-by-side

added added

removed removed

Lines of Context:
1308
1308
    def get_root_id(self):
1309
1309
        """See Branch.get_root_id."""
1310
1310
        tree = self.repository.revision_tree(self.last_revision())
1311
 
        return tree.inventory.root.file_id
 
1311
        return tree.get_root_id()
1312
1312
 
1313
1313
    def is_locked(self):
1314
1314
        return self.control_files.is_locked()