mercurial/filemerge.py
branchstable
changeset 49837 59466b13a3ae
parent 49167 7af798e497f5
child 49845 e0c0545e2e55
--- a/mercurial/filemerge.py	Tue Dec 06 17:12:59 2022 -0500
+++ b/mercurial/filemerge.py	Tue Jan 03 13:38:56 2023 -0800
@@ -1132,7 +1132,9 @@
         patterns = ui.configlist(section, b'%s.patterns' % name, [])
         is_match = True
         if patterns:
-            m = match.match(repo.root, b'', patterns)
+            m = match.match(
+                repo.root, b'', patterns, ctx=local.fctx.changectx()
+            )
             is_match = m(local.fctx.path())
         if is_match:
             if ui.configbool(section, b'%s.disable' % name):