D3826: grep: change default behaviour of grep

yuja (Yuya Nishihara) phabricator at mercurial-scm.org
Sat Jun 23 23:23:07 EDT 2018


yuja added a comment.


  > @@ -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.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D3826

To: sangeet259, #hg-reviewers
Cc: yuja, mercurial-devel


More information about the Mercurial-devel mailing list