mercurial/revset.py
branchstable
changeset 23954 310222feb9a8
parent 23950 caff3675cba5
child 23956 b1e026c25552
equal deleted inserted replaced
23953:af73c05e735a 23954:310222feb9a8
  1543         # i18n: "rev" is a keyword
  1543         # i18n: "rev" is a keyword
  1544         l = int(getstring(l[0], _("rev requires a number")))
  1544         l = int(getstring(l[0], _("rev requires a number")))
  1545     except (TypeError, ValueError):
  1545     except (TypeError, ValueError):
  1546         # i18n: "rev" is a keyword
  1546         # i18n: "rev" is a keyword
  1547         raise error.ParseError(_("rev expects a number"))
  1547         raise error.ParseError(_("rev expects a number"))
  1548     if l not in fullreposet(repo):
  1548     if l not in fullreposet(repo) and l != node.nullrev:
  1549         return baseset()
  1549         return baseset()
  1550     return subset & baseset([l])
  1550     return subset & baseset([l])
  1551 
  1551 
  1552 def matching(repo, subset, x):
  1552 def matching(repo, subset, x):
  1553     """``matching(revision [, field])``
  1553     """``matching(revision [, field])``