Patchwork [3,of,3] revset: point to 'grep' in the 'keyword' help for regex searches

login
register
mail settings
Submitter Matt Harbison
Date Jan. 12, 2017, 5:43 a.m.
Message ID <1d88ac8809e20256e370.1484199783@Envy>
Download mbox | patch
Permalink /patch/18188/
State Accepted
Headers show

Comments

Matt Harbison - Jan. 12, 2017, 5:43 a.m.
# HG changeset patch
# User Matt Harbison <matt_harbison@yahoo.com>
# Date 1484194431 18000
#      Wed Jan 11 23:13:51 2017 -0500
# Node ID 1d88ac8809e20256e3702f25c77a411a53367474
# Parent  41eac69037f03733374ea658a6a13de3973860bc
revset: point to 'grep' in the 'keyword' help for regex searches

The help for 'grep' already points to 'keyword'.

Patch

diff --git a/mercurial/revset.py b/mercurial/revset.py
--- a/mercurial/revset.py
+++ b/mercurial/revset.py
@@ -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")))