[Bug 4441] New: hg grep does not list all revisions where pattern can be found
mercurial-bugs at selenic.com
mercurial-bugs at selenic.com
Thu Nov 6 11:14:11 CST 2014
http://bz.selenic.com/show_bug.cgi?id=4441
Priority: normal
Bug ID: 4441
CC: mercurial-devel at selenic.com
Assignee: bugzilla at selenic.com
Summary: hg grep does not list all revisions where pattern can
be found
Severity: bug
Classification: Unclassified
OS: Linux
Reporter: ses1984 at gmail.com
Hardware: PC
Status: UNCONFIRMED
Version: 3.2-rc
Component: Mercurial
Product: Mercurial
I have been trying to find a revision where a certain line was removed. I
thought I could use hg grep and search a range of revisions. That would
indicate which revisions found the pattern, so I could easily discern which
revisions do not match.
This did not work because hg grep only returned one matching revision, even
though there were many more.
In the first command below, note that even though the --all option is used,
only one revision in the range is shown to match the pattern. In the second
command, using hg cat I can find the pattern in a revision that's supposed to
be within the range of the first.
$ hg grep exclude_any_ingredients -r243:260 --all access/forms.py
access/forms.py:243:+: exclude_any_ingredients =
forms.CharField(label="Exclude ANY ingredients", required=False,
help_text="Enter a list of PINs separated by comma. Flavors with any of these
ingredients will not be part of search results.")
$ hg cat -r249 access/forms.py |grep exclude_any_ingredients
exclude_any_ingredients = forms.CharField(label="Exclude ANY ingredients",
required=False, help_text="Enter a list of PINs separated by comma. Flavors
with any of these ingredients will not be part of search results.")
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Mercurial-devel
mailing list