[PATCH] grep: introduce a manifest search method

Matt Mackall mpm at selenic.com
Mon May 17 23:42:36 CDT 2010


On Mon, 2010-05-17 at 21:36 -0500, Steve Borho wrote:
> On Mon, May 17, 2010 at 9:21 PM, Steve Borho <steve at borho.org> wrote:
> > # HG changeset patch # User Steve Borho <steve at borho.org> # Date 1273812860 18000 # Node ID 7abcaef62d30d58f9247c42d5ae8269c55f65717 # Parent  c45a47bc41148b6037cd7337c4529a5e67b92222 grep: introduce a manifest search method
> 
> Let me just quickly add that if we could decide on a sane way to
> report 'working copy revision', I could easily add back a revision
> number to the default output.  Perhaps repo['.'].rev() + '+' ?

Not unreasonable. But let's think ahead to how we'd implement this in
the annotate command and then work back to grep from there.

It's also not clear that revision numbers are always wanted here. I
suspect "search the working copy" is easily the most common use for a
grep-like command (I have an alias for hg manifest | xargs grep myself).
However, some grep users recently outed themselves on the main mercurial
list for the first time ever, so we might want their feedback before
radically changing things.

-- 
Mathematics is the supreme nostalgia of our time.




More information about the Mercurial-devel mailing list