diff -r dc10bcd5c08d -r 65a812ed9e9f mercurial/formatter.py --- a/mercurial/formatter.py Thu Jul 30 13:44:06 2020 -0700 +++ b/mercurial/formatter.py Tue Aug 04 13:21:29 2020 -0700 @@ -599,9 +599,9 @@ # perhaps a stock style? if not os.path.split(tmpl)[0]: - mapname = templater.templatepath( + (mapname, fp) = templater.open_template( b'map-cmdline.' + tmpl - ) or templater.templatepath(tmpl) + ) or templater.open_template(tmpl) if mapname: return mapfile_templatespec(topic, mapname)