D3728: grep: adds allfiles mode

yuja (Yuya Nishihara) phabricator at mercurial-scm.org
Sun Jun 17 04:46:26 EDT 2018


yuja added a comment.


  > +    if allfiles and len(revs) > 1:
  >  +        raise error.Abort(_("multiple revisions not supported with --allfiles"))
  > 
  >   wanted = set()
  >   slowpath = match.anypats() or (not match.always() and opts.get('removed'))
  >   fncache = {}
  > 
  > @@ -1990,7 +1994,11 @@
  > 
  >   ctx = change(rev)
  >   if not fns:
  >       def fns_generator():
  > 
  > - for f in ctx.files(): +                        if allfiles and len(revs) == 1:
  
  Removed `len(revs) == 1` here and queued, thanks.

REPOSITORY
  rHG Mercurial

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

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


More information about the Mercurial-devel mailing list