[Updated] D8805: formatter: remove now-unnecessary check for file-ness
martinvonz (Martin von Zweigbergk)
phabricator at mercurial-scm.org
Sun Aug 2 16:07:54 UTC 2020
Closed by commit rHG653b2a439412: formatter: remove now-unnecessary check for file-ness (authored by martinvonz).
This revision was automatically updated to reflect the committed changes.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D8805?vs=22085&id=22182
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D8805/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D8805
AFFECTED FILES
mercurial/formatter.py
CHANGE DETAILS
diff --git a/mercurial/formatter.py b/mercurial/formatter.py
--- a/mercurial/formatter.py
+++ b/mercurial/formatter.py
@@ -584,7 +584,7 @@
mapname = templater.templatepath(
b'map-cmdline.' + tmpl
) or templater.templatepath(tmpl)
- if mapname and os.path.isfile(mapname):
+ if mapname:
return templatespec(topic, None, mapname)
# perhaps it's a reference to [templates]
To: martinvonz, #hg-reviewers, indygreg
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20200802/803463fe/attachment-0002.html>
More information about the Mercurial-patches
mailing list