changeset 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 c2cbc1b050db
children c390b40fe1d7
files mercurial/revset.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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")))