mercurial/logcmdutil.py
changeset 45651 c7413ffe0402
parent 45647 9fead7d97069
child 45765 ed84a4d48910
--- 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