comparison mercurial/revset.py @ 30772:b1012cb1bec3

revset: point to 'grep' in the 'keyword' help for regex searches The help for 'grep' already points to 'keyword'.
author Matt Harbison <matt_harbison@yahoo.com>
date Wed, 11 Jan 2017 23:13:51 -0500
parents 26209cb7184e
children db38cfc7c29d
comparison
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):