/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/branch.py

  • Committer: John Arbash Meinel
  • Date: 2007-10-26 19:18:48 UTC
  • mto: This revision was merged to the branch mainline in revision 2982.
  • Revision ID: john@arbash-meinel.com-20071026191848-kn2zemp87fo5cavb
Prefer tree.get_root_id() as more explicit than tree.path2id('')
Besides, it turns out that all trees had that implemented anyway.
And WT4 already had an implementation that did not require loading the full inventory.

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.path2id('')
 
1311
        return tree.get_root_id()
1312
1312
 
1313
1313
    def is_locked(self):
1314
1314
        return self.control_files.is_locked()