revset: point to 'grep' in the 'keyword' help for regex searches
authorMatt Harbison <matt_harbison@yahoo.com>
Wed, 11 Jan 2017 23:13:51 -0500
changeset 30772 b1012cb1bec3
parent 30771 c2cbc1b050db
child 30773 c390b40fe1d7
revset: point to 'grep' in the 'keyword' help for regex searches The help for 'grep' already points to 'keyword'.
mercurial/revset.py
--- a/mercurial/revset.py	Wed Jan 11 23:13:00 2017 -0800
+++ b/mercurial/revset.py	Wed Jan 11 23:13:51 2017 -0500
@@ -1253,6 +1253,9 @@
 def keyword(repo, subset, x):
     """Search commit message, user name, and names of changed files for
     string. The match is case-insensitive.
+
+    For a regular expression or case sensitive search of these fields, use
+    ``grep(regex)``.
     """
     # i18n: "keyword" is a keyword
     kw = encoding.lower(getstring(x, _("keyword requires a string")))