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

Thomas Arendsen Hein thomas at intevation.de
Sun Aug 28 09:07:35 CDT 2005

* Matt Mackall <mpm at selenic.com> [20050828 06:02]:
> On Sat, Aug 27, 2005 at 08:14:03PM -0700, Bryan O'Sullivan wrote:
> > On Sat, 2005-08-27 at 23:40 +0200, Thomas Arendsen Hein wrote:
> > > -Z (we have -0 as in locate)
> > > -a (use "-r 0:tip" instead, or always grep all unless -r is given)
> > > -e (we have the PATTERN argument)
> > > -v (doesn't work, and this is more of a job for 'hg cat|grep')
> > > -s (we have -q/--quiet)
> > > -f (should be always enabled if -l used, or enable on -v/--verbose)
> > 
> > I'd prefer that this patch not be applied.
> > 
> > Some of these options are not going to be implemented, and my intention
> > has been to get rid of them, but others exist for compatibility with the
> > Unix grep command.

Compatibility with Unix 'grep' is less important than a usable hg
command. Everyone uses a different set of options with grep and we
certainly don't want to support all of them. Personally I never use
-Z/-0/-a/-e/-s from above, but in real grep often -A/-B and -c and
sometimes the -a/--text switch.

We can't support all options of any command which may have some
similarities with something in Mercurial.

> Oops, thought you'd agreed to this one on IRC already. Sigh.

It was in a mail here: "I've no problem with trimming the list."


Email: thomas at intevation.de

More information about the Mercurial mailing list