[PATCH 0 of 1] grep command searches history
Bryan O'Sullivan
bos at serpentine.com
Thu Aug 25 04:00:51 CDT 2005
Here's a first cut at a grep command. It works much as you might expect.
$ hg grep -i symbolic README
README:327:114:- locations symbolically. Simply add a line with the name, a space, and
README:327:117:+ symbolically, add a section to it like this:
README:204:89:- # Give symbolic names to repos
README:204:102:+Symbolic repository names:
README:204:105:+ locations symbolically. Simply add a line with the name, a space, and
README:179:89:+ # Give symbolic names to repos
The fields above are file name, rev number, line number, and an indication
of whether a matching line was inserted or removed.
This code needs lots of work, but it's already useful.
<b
-------------- next part --------------
1 files changed, 203 insertions(+), 85 deletions(-)
mercurial/commands.py | 288 ++++++++++++++++++++++++++++++++++---------------
More information about the Mercurial
mailing list