##// END OF EJS Templates
templater: make templatepath() not return directory paths...
Martin von Zweigbergk -
r45819:9a308336 default
parent child Browse files
Show More
@@ -1072,7 +1072,7 b' def templatepath(name):'
1072 if dir is None:
1072 if dir is None:
1073 return None
1073 return None
1074 f = os.path.join(templatedir(), name)
1074 f = os.path.join(templatedir(), name)
1075 if f and os.path.exists(f):
1075 if f and os.path.isfile(f):
1076 return f
1076 return f
1077 return None
1077 return None
1078
1078
@@ -1284,7 +1284,8 b' Error if style is a directory:'
1284 Error if style is a directory whose name is a built-in style:
1284 Error if style is a directory whose name is a built-in style:
1285
1285
1286 $ hg log --style coal
1286 $ hg log --style coal
1287 abort: Is a directory: '*/mercurial/templates/coal' (glob)
1287 abort: style 'coal' not found
1288 (available styles: bisect, changelog, compact, default, phases, show, status, xml)
1288 [255]
1289 [255]
1289
1290
1290 Error if style missing key:
1291 Error if style missing key:
General Comments 0
You need to be logged in to leave comments. Login now