/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/revisionspec.py

  • Committer: John Arbash Meinel
  • Date: 2008-05-30 00:42:24 UTC
  • mto: This revision was merged to the branch mainline in revision 3463.
  • Revision ID: john@arbash-meinel.com-20080530004224-1zq421goscvxm6o1
Change the RevisionSpec_revno so that it doesn't need to grab the revision_history first.

Show diffs side-by-side

added added

removed removed

Lines of Context:
135
135
    """
136
136
 
137
137
    prefix = None
 
138
    wants_revision_history = True
138
139
 
139
140
    def __new__(cls, spec, _internal=False):
140
141
        if _internal:
215
216
 
216
217
    def in_history(self, branch):
217
218
        if branch:
218
 
            revs = branch.revision_history()
 
219
            if self.wants_revision_history:
 
220
                revs = branch.revision_history()
 
221
            else:
 
222
                revs = None
219
223
        else:
220
224
            # this should never trigger.
221
225
            # TODO: make it a deprecated code path. RBC 20060928
292
296
                                   your history is very long.
293
297
    """
294
298
    prefix = 'revno:'
 
299
    wants_revision_history = False
295
300
 
296
301
    def _match_on(self, branch, revs):
297
302
        """Lookup a revision by revision number"""