changeset 15200:797bf1dc1ff8

debuginstall: report the template path
author Matt Mackall <mpm@selenic.com>
date Fri, 07 Oct 2011 15:36:50 -0500
parents 56da00994067
children 2c4fdee4d1a8
files mercurial/commands.py tests/test-install.t
diffstat 2 files changed, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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)
--- 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")