# HG changeset patch # User Matt Mackall # Date 1318019810 18000 # Node ID 797bf1dc1ff89a3520752a783c6c909d7df97def # Parent 56da00994067977f1e4377020b2a9aabccdafee7 debuginstall: report the template path diff -r 56da00994067 -r 797bf1dc1ff8 mercurial/commands.py --- a/mercurial/commands.py Sat Oct 01 16:42:39 2011 -0400 +++ b/mercurial/commands.py Fri Oct 07 15:36:50 2011 -0500 @@ -1854,9 +1854,10 @@ problems += 1 # templates - ui.status(_("Checking templates...\n")) + import templater + p = templater.templatepath() + ui.status(_("Checking templates (%s)...\n") % ' '.join(p)) try: - import templater templater.templater(templater.templatepath("map-cmdline.default")) except Exception, inst: ui.write(" %s\n" % inst) diff -r 56da00994067 -r 797bf1dc1ff8 tests/test-install.t --- a/tests/test-install.t Sat Oct 01 16:42:39 2011 -0400 +++ b/tests/test-install.t Fri Oct 07 15:36:50 2011 -0500 @@ -2,7 +2,7 @@ $ hg debuginstall Checking encoding (ascii)... Checking installed modules (*/mercurial)... (glob) - Checking templates... + Checking templates (*/mercurial/templates)... (glob) Checking commit editor... Checking username... No problems detected @@ -11,7 +11,7 @@ $ HGUSER= hg debuginstall Checking encoding (ascii)... Checking installed modules (*/mercurial)... (glob) - Checking templates... + Checking templates (*/mercurial/templates)... (glob) Checking commit editor... Checking username... no username supplied (see "hg help config")