~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-12-03 19:46:27 UTC
  • mfrom: (3066.1.1 jam-integration)
  • Revision ID: pqm@pqm.ubuntu.com-20071203194627-dyicsjrmtmkg5tfy
(Lukáš Lalinský) Change Branch.revno() to use last_revision_info, rather than revision_history.

Show diffs side-by-side

added added

removed removed

Lines of Context:
425
425
        That is equivalent to the number of revisions committed to
426
426
        this branch.
427
427
        """
428
 
        return len(self.revision_history())
 
428
        return self.last_revision_info()[0]
429
429
 
430
430
    def unbind(self):
431
431
        """Older format branches cannot bind or unbind."""