mercurial/templater.py
changeset 45259 9a308336fe41
parent 45257 668af67bfd18
child 45261 28840ef52f71
--- a/mercurial/templater.py	Thu Jul 23 22:44:18 2020 -0700
+++ b/mercurial/templater.py	Thu Jul 23 22:47:55 2020 -0700
@@ -1072,7 +1072,7 @@
     if dir is None:
         return None
     f = os.path.join(templatedir(), name)
-    if f and os.path.exists(f):
+    if f and os.path.isfile(f):
         return f
     return None