~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/branch.py

  • Committer: John Arbash Meinel
  • Date: 2007-10-26 19:08:21 UTC
  • mto: This revision was merged to the branch mainline in revision 2982.
  • Revision ID: john@arbash-meinel.com-20071026190821-ol840ac6hknunpqd
Switch from using Tree.inventory.root.file_id() to using Tree.path2id('')

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