Rev 3461: Change the RevisionSpec_revno so that it doesn't need to grab the revision_history first. in http://bzr.arbash-meinel.com/branches/bzr/1.6-dev/revno_no_history
John Arbash Meinel
john at arbash-meinel.com
Fri May 30 01:42:41 BST 2008
At http://bzr.arbash-meinel.com/branches/bzr/1.6-dev/revno_no_history
------------------------------------------------------------
revno: 3461
revision-id: john at arbash-meinel.com-20080530004224-1zq421goscvxm6o1
parent: pqm at pqm.ubuntu.com-20080529210000-bycgfufmrqq63tki
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: revno_no_history
timestamp: Thu 2008-05-29 19:42:24 -0500
message:
Change the RevisionSpec_revno so that it doesn't need to grab the revision_history first.
modified:
bzrlib/revisionspec.py revisionspec.py-20050907152633-17567659fd5c0ddb
-------------- next part --------------
=== modified file 'bzrlib/revisionspec.py'
--- a/bzrlib/revisionspec.py 2008-05-08 04:33:38 +0000
+++ b/bzrlib/revisionspec.py 2008-05-30 00:42:24 +0000
@@ -135,6 +135,7 @@
"""
prefix = None
+ wants_revision_history = True
def __new__(cls, spec, _internal=False):
if _internal:
@@ -215,7 +216,10 @@
def in_history(self, branch):
if branch:
- revs = branch.revision_history()
+ if self.wants_revision_history:
+ revs = branch.revision_history()
+ else:
+ revs = None
else:
# this should never trigger.
# TODO: make it a deprecated code path. RBC 20060928
@@ -292,6 +296,7 @@
your history is very long.
"""
prefix = 'revno:'
+ wants_revision_history = False
def _match_on(self, branch, revs):
"""Lookup a revision by revision number"""
More information about the bazaar-commits
mailing list