D5620: grep: don't look up copy info unless --follow is given

yuja (Yuya Nishihara) phabricator at mercurial-scm.org
Sat Jan 26 02:10:01 EST 2019


yuja added a comment.


  >   diff --git a/mercurial/commands.py b/mercurial/commands.py
  >   --- a/mercurial/commands.py
  >   +++ b/mercurial/commands.py
  >   @@ -2955,7 +2955,8 @@ def grep(ui, repo, pattern, *pats, **opt
  >                        copies.setdefault(rev, {})[fn] = copy
  >                        if fn in skip:
  >                            skip[copy] = True
  >   -                        continue
  >   +            if fn in skip:
  >   +                continue
  >                files.append(fn)
  
  Applied this, thanks.

REPOSITORY
  rHG Mercurial

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

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


More information about the Mercurial-devel mailing list