mercurial/logcmdutil.py
changeset 45309 65a812ed9e9f
parent 45267 c1915cfa8080
child 45310 f3481e4fcc3a
--- a/mercurial/logcmdutil.py	Thu Jul 30 13:44:06 2020 -0700
+++ b/mercurial/logcmdutil.py	Tue Aug 04 13:21:29 2020 -0700
@@ -627,9 +627,9 @@
     if not tmpl and style:
         mapfile = style
         if not os.path.split(mapfile)[0]:
-            mapname = templater.templatepath(
+            (mapname, fp) = templater.open_template(
                 b'map-cmdline.' + mapfile
-            ) or templater.templatepath(mapfile)
+            ) or templater.open_template(mapfile)
             if mapname:
                 mapfile = mapname
         return formatter.mapfile_templatespec(b'changeset', mapfile)