mercurial/filemerge.py
changeset 49927 e0c0545e2e55
parent 49762 5744ceeb9067
parent 49622 59466b13a3ae
child 50018 2282d8ac0fa9
--- a/mercurial/filemerge.py	Tue Jan 03 11:53:35 2023 -0500
+++ b/mercurial/filemerge.py	Wed Jan 04 16:02:22 2023 +0100
@@ -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):