diff -r 6e6fe826ba69 -r 4aa484efc926 mercurial/formatter.py --- a/mercurial/formatter.py Wed Aug 05 22:13:51 2020 -0700 +++ b/mercurial/formatter.py Thu Aug 06 09:50:10 2020 -0700 @@ -600,9 +600,9 @@ # perhaps a stock style? if not os.path.split(tmpl)[0]: - (mapname, fp) = templater.open_template( + (mapname, fp) = templater.try_open_template( b'map-cmdline.' + tmpl - ) or templater.open_template(tmpl) + ) or templater.try_open_template(tmpl) if mapname: return mapfile_templatespec(topic, mapname, fp)