changeset 12004:1fe4702fe2df

debuginstall: report installpath
author Matt Mackall <mpm@selenic.com>
date Fri, 20 Aug 2010 15:31:05 -0500
parents a092b91a27c4
children af00e58bd383 d212c043805d
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	Fri Aug 20 18:26:20 2010 +0200
+++ b/mercurial/commands.py	Fri Aug 20 15:31:05 2010 -0500
@@ -1286,9 +1286,10 @@
         problems += 1
 
     # compiled modules
-    ui.status(_("Checking extensions...\n"))
+    ui.status(_("Checking installed modules (%s)...\n")
+              % os.path.dirname(__file__))
     try:
-        import bdiff, mpatch, base85
+        import bdiff, mpatch, base85, osutil
     except Exception, inst:
         ui.write(" %s\n" % inst)
         ui.write(_(" One or more extensions could not be found"))
--- a/tests/test-install.t	Fri Aug 20 18:26:20 2010 +0200
+++ b/tests/test-install.t	Fri Aug 20 15:31:05 2010 -0500
@@ -1,7 +1,7 @@
 hg debuginstall
   $ hg debuginstall
   Checking encoding (ascii)...
-  Checking extensions...
+  Checking installed modules \(.*/mercurial\)...
   Checking templates...
   Checking patch...
   Checking commit editor...
@@ -11,7 +11,7 @@
 hg debuginstall with no username
   $ HGUSER= hg debuginstall
   Checking encoding (ascii)...
-  Checking extensions...
+  Checking installed modules \(.*/mercurial\)...
   Checking templates...
   Checking patch...
   Checking commit editor...