D3826: grep : change default behaviour of grep

Yuya Nishihara yuya at tcha.org
Sat Jun 23 23:22:57 EDT 2018


> @@ -2431,6 +2431,10 @@
>      Returns 0 if a match is found, 1 otherwise.
>      """
>      opts = pycompat.byteskwargs(opts)
> +
> +    if len(opts.get('rev')) ==1:
> +        opts['allfiles'] = True

So, `-rA` implies `--allfiles` but `-rA -rB` doesn't? which seems worse than
the current situation.

And we'll need an option to get back the original behavior.


More information about the Mercurial-devel mailing list