[PATCH 4 of 4] Remove some options from 'hg grep':

Thomas Arendsen Hein thomas at intevation.de
Sun Aug 28 22:56:38 CDT 2005

* Matt Mackall <mpm at selenic.com> [20050828 22:20]:
> > > > On Sat, 2005-08-27 at 23:40 +0200, Thomas Arendsen Hein wrote:
> > > > > -a (use "-r 0:tip" instead, or always grep all unless -r is given)
> What was this doing?

grep over all revisions

> -a needs to be --text, like grep(1) and hg diff.


> > > > > -e (we have the PATTERN argument)
> If we support -e, we need to support multiple patterns (which is what
> it's there for in grep(1)).

yes, and then we need to make PATTERN optional, but at least one
pattern required.

> > > > > -v (doesn't work, and this is more of a job for 'hg cat|grep')
> How does hg cat help? It only handles one file/version. Invert
> colliding with verbose is a bit of a problem.

But retrieving all non-matching lines in many revisions doesn't
sound like a good idea to me. Tell me a use case :)

> > > > > -f (should be always enabled if -l used, or enable on -v/--verbose)
> And what was this doing?

Doing: nothing yet.
Intended to do: Show full paths instead of just the file name.


Email: thomas at intevation.de

More information about the Mercurial mailing list