filemerge: don't pass function name as loadpath's module_name param
authorhindlemail <tom_hindle@sil.org>
Thu, 24 May 2018 15:56:47 -0600
changeset 38159 dea3903175ee
parent 38158 4e790f0966fc
child 38160 c974320d20b9
filemerge: don't pass function name as loadpath's module_name param
mercurial/filemerge.py
--- a/mercurial/filemerge.py	Tue May 22 18:10:37 2018 +0200
+++ b/mercurial/filemerge.py	Thu May 24 15:56:47 2018 -0600
@@ -574,7 +574,7 @@
             try:
                 # avoid cycle cmdutil->merge->filemerge->extensions->cmdutil
                 from . import extensions
-                mod = extensions.loadpath(toolpath, 'hgmerge.%s' % scriptfn)
+                mod = extensions.loadpath(toolpath, 'hgmerge.%s' % tool)
             except Exception:
                 raise error.Abort(_("loading python merge script failed: %s") %
                                   toolpath)