changeset 36006:f113ac0750f3

log: drop dead code to concatenate --line-range patterns and pats It's disabled since 2e45bbd3db7b, and the current implementation is unlikely to be reused.
author Yuya Nishihara <yuya@tcha.org>
date Sun, 21 Jan 2018 15:50:24 +0900
parents dd77e36eabb6
children 29b83c08afe0
files mercurial/commands.py
diffstat 1 files changed, 1 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/commands.py	Sun Jan 21 15:34:37 2018 +0900
+++ b/mercurial/commands.py	Sun Jan 21 15:50:24 2018 +0900
@@ -3428,20 +3428,9 @@
         return logcmdutil.graphlog(ui, repo, revs, filematcher, opts)
 
     if linerange:
-        revs, lrfilematcher, hunksfilter = logcmdutil.getlinerangerevs(
+        revs, filematcher, hunksfilter = logcmdutil.getlinerangerevs(
             repo, revs, opts)
 
-        if filematcher is not None:
-            basefilematcher = filematcher
-
-            def filematcher(rev):
-                files = (basefilematcher(rev).files()
-                         + lrfilematcher(rev).files())
-                return scmutil.matchfiles(repo, files)
-
-        elif filematcher is None:
-            filematcher = lrfilematcher
-
     getrenamed = None
     if opts.get('copies'):
         endrev = None