mercurial/revset.py
branchstable
changeset 23062 ba89f7b542c9
parent 23061 f2aeff8a87b6
child 23078 eb763217152a
equal deleted inserted replaced
23061:f2aeff8a87b6 23062:ba89f7b542c9
  1349         # i18n: "rev" is a keyword
  1349         # i18n: "rev" is a keyword
  1350         l = int(getstring(l[0], _("rev requires a number")))
  1350         l = int(getstring(l[0], _("rev requires a number")))
  1351     except (TypeError, ValueError):
  1351     except (TypeError, ValueError):
  1352         # i18n: "rev" is a keyword
  1352         # i18n: "rev" is a keyword
  1353         raise error.ParseError(_("rev expects a number"))
  1353         raise error.ParseError(_("rev expects a number"))
       
  1354     if l not in repo.changelog:
       
  1355         return baseset()
  1354     return subset & baseset([l])
  1356     return subset & baseset([l])
  1355 
  1357 
  1356 def matching(repo, subset, x):
  1358 def matching(repo, subset, x):
  1357     """``matching(revision [, field])``
  1359     """``matching(revision [, field])``
  1358     Changesets in which a given set of fields match the set of fields in the
  1360     Changesets in which a given set of fields match the set of fields in the