mercurial/revset.py
changeset 30772 b1012cb1bec3
parent 30754 26209cb7184e
child 30782 db38cfc7c29d
equal deleted inserted replaced
30771:c2cbc1b050db 30772:b1012cb1bec3
  1251 
  1251 
  1252 @predicate('keyword(string)', safe=True)
  1252 @predicate('keyword(string)', safe=True)
  1253 def keyword(repo, subset, x):
  1253 def keyword(repo, subset, x):
  1254     """Search commit message, user name, and names of changed files for
  1254     """Search commit message, user name, and names of changed files for
  1255     string. The match is case-insensitive.
  1255     string. The match is case-insensitive.
       
  1256 
       
  1257     For a regular expression or case sensitive search of these fields, use
       
  1258     ``grep(regex)``.
  1256     """
  1259     """
  1257     # i18n: "keyword" is a keyword
  1260     # i18n: "keyword" is a keyword
  1258     kw = encoding.lower(getstring(x, _("keyword requires a string")))
  1261     kw = encoding.lower(getstring(x, _("keyword requires a string")))
  1259 
  1262 
  1260     def matches(r):
  1263     def matches(r):