##// END OF EJS Templates
debuginstall: add Python information to debuginstall output (issue4128)...
Chris Jerdonek -
r20740:535283a7 default
parent child Browse files
Show More
@@ -9,6 +9,7 b' from node import hex, bin, nullid, nullr'
9 from lock import release
9 from lock import release
10 from i18n import _
10 from i18n import _
11 import os, re, difflib, time, tempfile, errno
11 import os, re, difflib, time, tempfile, errno
12 import sys
12 import hg, scmutil, util, revlog, copies, error, bookmarks
13 import hg, scmutil, util, revlog, copies, error, bookmarks
13 import patch, help, encoding, templatekw, discovery
14 import patch, help, encoding, templatekw, discovery
14 import archival, changegroup, cmdutil, hbisect
15 import archival, changegroup, cmdutil, hbisect
@@ -2159,7 +2160,10 b' def debuginstall(ui):'
2159 ui.write(_(" (check that your locale is properly set)\n"))
2160 ui.write(_(" (check that your locale is properly set)\n"))
2160 problems += 1
2161 problems += 1
2161
2162
2162 # Python lib
2163 # Python
2164 ui.status(_("showing Python executable (%s)\n") % sys.executable)
2165 ui.status(_("showing Python version (%s)\n")
2166 % ("%s.%s.%s" % sys.version_info[:3]))
2163 ui.status(_("checking Python lib (%s)...\n")
2167 ui.status(_("checking Python lib (%s)...\n")
2164 % os.path.dirname(os.__file__))
2168 % os.path.dirname(os.__file__))
2165
2169
@@ -1,6 +1,8 b''
1 hg debuginstall
1 hg debuginstall
2 $ hg debuginstall
2 $ hg debuginstall
3 checking encoding (ascii)...
3 checking encoding (ascii)...
4 showing Python executable (*) (glob)
5 showing Python version (2.*) (glob)
4 checking Python lib (*lib*)... (glob)
6 checking Python lib (*lib*)... (glob)
5 checking installed modules (*mercurial)... (glob)
7 checking installed modules (*mercurial)... (glob)
6 checking templates (*mercurial?templates)... (glob)
8 checking templates (*mercurial?templates)... (glob)
@@ -11,6 +13,8 b' hg debuginstall'
11 hg debuginstall with no username
13 hg debuginstall with no username
12 $ HGUSER= hg debuginstall
14 $ HGUSER= hg debuginstall
13 checking encoding (ascii)...
15 checking encoding (ascii)...
16 showing Python executable (*) (glob)
17 showing Python version (2.*) (glob)
14 checking Python lib (*lib*)... (glob)
18 checking Python lib (*lib*)... (glob)
15 checking installed modules (*mercurial)... (glob)
19 checking installed modules (*mercurial)... (glob)
16 checking templates (*mercurial?templates)... (glob)
20 checking templates (*mercurial?templates)... (glob)
General Comments 0
You need to be logged in to leave comments. Login now