Rev 3067: Make the default Branch.revno() implementation just be a thunk to last_revision_info. in http://bzr.arbash-meinel.com/branches/bzr/jam-integration
John Arbash Meinel
john at arbash-meinel.com
Mon Dec 3 18:39:58 GMT 2007
At http://bzr.arbash-meinel.com/branches/bzr/jam-integration
------------------------------------------------------------
revno: 3067
revision-id:john at arbash-meinel.com-20071203183851-4fbxlt2yy1ya4w3b
parent: pqm at pqm.ubuntu.com-20071203012007-1tfytfzp7piacl7q
parent: lalinsky at gmail.com-20071202192634-sop888anr2cbvhyj
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: jam-integration
timestamp: Mon 2007-12-03 12:38:51 -0600
message:
Make the default Branch.revno() implementation just be a thunk to last_revision_info.
modified:
bzrlib/branch.py branch.py-20050309040759-e4baf4e0d046576e
------------------------------------------------------------
revno: 3065.1.1
revision-id:lalinsky at gmail.com-20071202192634-sop888anr2cbvhyj
parent: pqm at pqm.ubuntu.com-20071202151118-zcl7ezt2c7k5rkos
committer: Lukáš Lalinský <lalinsky at gmail.com>
branch nick: branch6-revno
timestamp: Sun 2007-12-02 20:26:34 +0100
message:
Use last-revision in BzrBranch6.revno() to avoid loading the whole history.
modified:
bzrlib/branch.py branch.py-20050309040759-e4baf4e0d046576e
-------------- next part --------------
=== modified file 'bzrlib/branch.py'
--- a/bzrlib/branch.py 2007-11-16 01:35:31 +0000
+++ b/bzrlib/branch.py 2007-12-03 18:38:51 +0000
@@ -425,7 +425,7 @@
That is equivalent to the number of revisions committed to
this branch.
"""
- return len(self.revision_history())
+ return self.last_revision_info()[0]
def unbind(self):
"""Older format branches cannot bind or unbind."""
More information about the bazaar-commits
mailing list