~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/revisionspec.py

  • Committer: Ian Clatworthy
  • Date: 2009-01-22 13:58:18 UTC
  • mto: (3951.1.1 ianc-integration)
  • mto: This revision was merged to the branch mainline in revision 3952.
  • Revision ID: ian.clatworthy@canonical.com-20090122135818-twftjodatp3cm7xm
review feedback from jam

Show diffs side-by-side

added added

removed removed

Lines of Context:
353
353
 
354
354
        if dotted:
355
355
            try:
356
 
                revision = branch.dotted_revno_to_revision_id(match_revno,
357
 
                    _reverse_cache=True)
 
356
                revision_id = branch.dotted_revno_to_revision_id(match_revno,
 
357
                    _cache_reverse=True)
358
358
            except errors.NoSuchRevision:
359
359
                raise errors.InvalidRevisionSpec(self.user_spec, branch)
360
360
            else:
361
361
                # there is no traditional 'revno' for dotted-decimal revnos.
362
362
                # so for  API compatability we return None.
363
 
                return branch, None, revision
 
363
                return branch, None, revision_id
364
364
        else:
365
365
            last_revno, last_revision_id = branch.last_revision_info()
366
366
            if revno < 0: