~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/revisionspec.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2008-05-24 11:41:24 UTC
  • mfrom: (3449.1.2 unbreak-push-overwrite)
  • Revision ID: pqm@pqm.ubuntu.com-20080524114124-ubdyd5iqf7zxl2pn
Fix "bzr push --overwrite -r NNN". (Andrew Bennetts)

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