[PATCH 0 of 4] Add locate command

Matt Mackall mpm at selenic.com
Tue Jul 5 15:42:20 CDT 2005


On Mon, Jul 04, 2005 at 09:47:19PM -0700, Bryan O'Sullivan wrote:
> On Mon, 2005-07-04 at 21:40 -0700, Bryan O'Sullivan wrote:
> 
> > Here are a few examples:
> 
> And another, for why this is useful: recursive grep across all revision-
> controlled files of a particular type.
> 
> hg locate -0 -i '*/asm-*' mmu.h | xargs -0 -r grep volatile
> 
> Actually, recursive grep is sufficiently useful that I'm thinking of
> adding it as a specific command.  Any objections?

Is it going to grep inside old revisions? That could be very handy.

-- 
Mathematics is the supreme nostalgia of our time.


More information about the Mercurial mailing list