[PATCH 0 of 4] Add locate command
Matt Mackall
mpm at selenic.com
Wed Jul 6 03:58:52 UTC 2005
On Wed, Jul 06, 2005 at 11:52:09AM +0800, Soh Tk-r28629 wrote:
> > > > % python hg locate -i 'doc/*'
> > > > ^(?:doc\/.*)/
> > >
> > > That should print the same thing. This is a bug.
> >
> > Actually, it's not a bug, but it points out that the man page entry
> > could do with some robustification.
> >
> > What that means is "look under any subdirectory of doc".
>
> Ya, I just read about the -i option. My bad. BTW, any reasons why you don't permit directory specification, ie. 'doc/*', in the file patterns, but have to do it through -i?
Locate perhaps ought to work like .hgignore: match arbitrary regexes
against strings.
--
Mathematics is the supreme nostalgia of our time.
More information about the Mercurial
mailing list