debuginstall: report installpath
authorMatt Mackall <mpm@selenic.com>
Fri, 20 Aug 2010 15:31:05 -0500
changeset 12004 1fe4702fe2df
parent 12003 a092b91a27c4
child 12006 af00e58bd383
child 12224 d212c043805d
debuginstall: report installpath
mercurial/commands.py
tests/test-install.t
--- 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...