comparison mercurial/commands.py @ 22634:e48a5d3996c2

templater: introduce templatepaths for getting paths searched for templates Avoid function with different return types depending on parameters.
author Mads Kiilerich <madski@unity3d.com>
date Sun, 28 Sep 2014 16:57:37 +0200
parents fb74a5833467
children 79c4178b2169
comparison
equal deleted inserted replaced
22633:92b54547ac5d 22634:e48a5d3996c2
2254 ui.write(_(" (check that you compiled the extensions)\n")) 2254 ui.write(_(" (check that you compiled the extensions)\n"))
2255 problems += 1 2255 problems += 1
2256 2256
2257 # templates 2257 # templates
2258 import templater 2258 import templater
2259 p = templater.templatepath() 2259 p = templater.templatepaths()
2260 ui.status(_("checking templates (%s)...\n") % ' '.join(p)) 2260 ui.status(_("checking templates (%s)...\n") % ' '.join(p))
2261 if p: 2261 if p:
2262 m = templater.templatepath("map-cmdline.default") 2262 m = templater.templatepath("map-cmdline.default")
2263 if m: 2263 if m:
2264 # template found, check if it is working 2264 # template found, check if it is working