diff mercurial/logcmdutil.py @ 45653:c7413ffe0402

cmdutil: remove remainder of old walkchangerevs() implementation
author Yuya Nishihara <yuya@tcha.org>
date Thu, 10 Sep 2020 18:57:31 +0900
parents 9fead7d97069
children ed84a4d48910
line wrap: on
line diff
--- a/mercurial/logcmdutil.py	Thu Sep 10 18:01:43 2020 +0900
+++ b/mercurial/logcmdutil.py	Thu Sep 10 18:57:31 2020 +0900
@@ -776,8 +776,8 @@
     - slowpath: True if patterns aren't as simple as scanning filelogs
     """
     # pats/include/exclude are passed to match.match() directly in
-    # _matchfiles() revset but walkchangerevs() builds its matcher with
-    # scmutil.match(). The difference is input pats are globbed on
+    # _matchfiles() revset, but a log-like command should build its matcher
+    # with scmutil.match(). The difference is input pats are globbed on
     # platforms without shell expansion (windows).
     wctx = repo[None]
     match, pats = scmutil.matchandpats(wctx, wopts.pats, wopts.opts)
@@ -907,8 +907,6 @@
     }
 
     if wopts.filter_revisions_by_pats and slowpath:
-        # See walkchangerevs() slow path.
-        #
         # pats/include/exclude cannot be represented as separate
         # revset expressions as their filtering logic applies at file
         # level. For instance "-I a -X b" matches a revision touching