mercurial/revset.py
changeset 24031 fe1abb5d92f6
parent 24012 bc75f8750cde
child 24114 fafd9a1284cf
equal deleted inserted replaced
24030:828dc8db5515 24031:fe1abb5d92f6
  1545         # i18n: "rev" is a keyword
  1545         # i18n: "rev" is a keyword
  1546         l = int(getstring(l[0], _("rev requires a number")))
  1546         l = int(getstring(l[0], _("rev requires a number")))
  1547     except (TypeError, ValueError):
  1547     except (TypeError, ValueError):
  1548         # i18n: "rev" is a keyword
  1548         # i18n: "rev" is a keyword
  1549         raise error.ParseError(_("rev expects a number"))
  1549         raise error.ParseError(_("rev expects a number"))
  1550     if l not in fullreposet(repo) and l != node.nullrev:
  1550     if l not in repo.changelog and l != node.nullrev:
  1551         return baseset()
  1551         return baseset()
  1552     return subset & baseset([l])
  1552     return subset & baseset([l])
  1553 
  1553 
  1554 def matching(repo, subset, x):
  1554 def matching(repo, subset, x):
  1555     """``matching(revision [, field])``
  1555     """``matching(revision [, field])``