~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/revisionspec.py

  • Committer: Robert Collins
  • Date: 2007-02-02 09:17:23 UTC
  • mfrom: (2249.4.2 tip.info)
  • mto: This revision was merged to the branch mainline in revision 2257.
  • Revision ID: robertc@robertcollins.net-20070202091723-xtak1zzhe2ylwksa
(robertc) Merge new Branch.last_revision_info method.

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: