~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/revisionspec.py

Convert callers of Branch.revision_history() to Branch.last_revision_info() where sensible.
(Wouter van Heyst, Robert Collins)

Show diffs side-by-side

added added

removed removed

Lines of Context:
326
326
                return RevisionInfo(branch, None, revisions[0][1])
327
327
        else:
328
328
            if revno < 0:
 
329
                # if get_rev_id supported negative revnos, there would not be a
 
330
                # need for this special case.
329
331
                if (-revno) >= len(revs):
330
332
                    revno = 1
331
333
                else: