mercurial/scmutil.py
changeset 16379 5cbfbb838198
parent 16208 85db991780b7
child 16383 f5dd179bfa4a
equal deleted inserted replaced
16378:c463f46fe050 16379:5cbfbb838198
   521     """Yield revision as strings from a list of revision specifications."""
   521     """Yield revision as strings from a list of revision specifications."""
   522 
   522 
   523     def revfix(repo, val, defval):
   523     def revfix(repo, val, defval):
   524         if not val and val != 0 and defval is not None:
   524         if not val and val != 0 and defval is not None:
   525             return defval
   525             return defval
   526         return repo.changelog.rev(repo.lookup(val))
   526         return repo[val].rev()
   527 
   527 
   528     seen, l = set(), []
   528     seen, l = set(), []
   529     for spec in revs:
   529     for spec in revs:
   530         # attempt to parse old-style ranges first to deal with
   530         # attempt to parse old-style ranges first to deal with
   531         # things like old-tag which contain query metacharacters
   531         # things like old-tag which contain query metacharacters