Show More
@@ -2107,10 +2107,21 b' def debuginstall(ui):' | |||
|
2107 | 2107 | import templater |
|
2108 | 2108 | p = templater.templatepath() |
|
2109 | 2109 | ui.status(_("checking templates (%s)...\n") % ' '.join(p)) |
|
2110 |
|
|
|
2111 |
|
|
|
2112 | except Exception, inst: | |
|
2113 | ui.write(" %s\n" % inst) | |
|
2110 | if p: | |
|
2111 | m = templater.templatepath("map-cmdline.default") | |
|
2112 | if m: | |
|
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 | 2125 | ui.write(_(" (templates seem to have been installed incorrectly)\n")) |
|
2115 | 2126 | problems += 1 |
|
2116 | 2127 |
General Comments 0
You need to be logged in to leave comments.
Login now