~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/branch.py

  • Committer: Martin Pool
  • Date: 2005-09-13 23:18:12 UTC
  • Revision ID: mbp@sourcefrog.net-20050913231812-dc1df8fb11f78a31
- rename last_patch to last_revision

Show diffs side-by-side

added added

removed removed

Lines of Context:
757
757
        return len(self.revision_history())
758
758
 
759
759
 
760
 
    def last_patch(self):
 
760
    def last_revision(self):
761
761
        """Return last patch hash, or None if no history.
762
762
        """
763
763
        ph = self.revision_history()
1064
1064
 
1065
1065
        If there are no revisions yet, return an `EmptyTree`.
1066
1066
        """
1067
 
        return self.revision_tree(self.last_patch())
 
1067
        return self.revision_tree(self.last_revision())
1068
1068
 
1069
1069
 
1070
1070
    def rename_one(self, from_rel, to_rel):