##// END OF EJS Templates
commands: hg debuginstall checks missing templates (issue4151)...
Simon Heimberg -
r20389:9a86b5b8 default
parent child Browse files
Show More
@@ -2107,10 +2107,21 b' def debuginstall(ui):'
2107 import templater
2107 import templater
2108 p = templater.templatepath()
2108 p = templater.templatepath()
2109 ui.status(_("checking templates (%s)...\n") % ' '.join(p))
2109 ui.status(_("checking templates (%s)...\n") % ' '.join(p))
2110 try:
2110 if p:
2111 templater.templater(templater.templatepath("map-cmdline.default"))
2111 m = templater.templatepath("map-cmdline.default")
2112 except Exception, inst:
2112 if m:
2113 ui.write(" %s\n" % inst)
2113 # template found, check if it is working
2114 try:
2115 templater.templater(m)
2116 except Exception, inst:
2117 ui.write(" %s\n" % inst)
2118 p = None
2119 else:
2120 ui.write(_(" template 'default' not found\n"))
2121 p = None
2122 else:
2123 ui.write(_(" no template directories found\n"))
2124 if not p:
2114 ui.write(_(" (templates seem to have been installed incorrectly)\n"))
2125 ui.write(_(" (templates seem to have been installed incorrectly)\n"))
2115 problems += 1
2126 problems += 1
2116
2127
General Comments 0
You need to be logged in to leave comments. Login now