equal
deleted
inserted
replaced
2105 |
2105 |
2106 # templates |
2106 # templates |
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 |
2117 # editor |
2128 # editor |
2118 ui.status(_("checking commit editor...\n")) |
2129 ui.status(_("checking commit editor...\n")) |