# HG changeset patch # User Adrian Buehlmann # Date 1344250787 -7200 # Node ID bdd248666dbc18b6079f95dbabd0f53ed9975c83 # Parent fc24c10424d2852160774468a6776fbf4af716bd debuginstall: show directory for Python lib Example new output on Windows: $ hg debuginstall checking encoding (cp1252)... checking Python lib (C:\Users\adi\hgrepos\hg-main\hg-python\lib)... checking installed modules (C:\Users\adi\hgrepos\hg-main\mercurial)... checking templates (C:\Users\adi\hgrepos\hg-main\mercurial\templates)... checking commit editor... C:\Program Files (x86)\Notepad++\notepad++.exe checking username... no problems detected on Linux: adi@kork-ubuntu64:~/hgrepos/hg-main$ ./hg debuginstall checking encoding (UTF-8)... checking Python lib (/usr/lib/python2.7)... checking installed modules (/home/adi/hgrepos/hg-main/mercurial)... checking templates (/home/adi/hgrepos/hg-main/mercurial/templates)... checking commit editor... checking username... no problems detected diff -r fc24c10424d2 -r bdd248666dbc mercurial/commands.py --- a/mercurial/commands.py Sat Aug 04 07:14:40 2012 +0200 +++ b/mercurial/commands.py Mon Aug 06 12:59:47 2012 +0200 @@ -1998,6 +1998,10 @@ ui.write(_(" (check that your locale is properly set)\n")) problems += 1 + # Python lib + ui.status(_("checking Python lib (%s)...\n") + % os.path.dirname(os.__file__)) + # compiled modules ui.status(_("checking installed modules (%s)...\n") % os.path.dirname(__file__)) diff -r fc24c10424d2 -r bdd248666dbc tests/test-install.t --- a/tests/test-install.t Sat Aug 04 07:14:40 2012 +0200 +++ b/tests/test-install.t Mon Aug 06 12:59:47 2012 +0200 @@ -1,6 +1,7 @@ hg debuginstall $ hg debuginstall checking encoding (ascii)... + checking Python lib (*lib*)... (glob) checking installed modules (*mercurial)... (glob) checking templates (*mercurial?templates)... (glob) checking commit editor... @@ -10,6 +11,7 @@ hg debuginstall with no username $ HGUSER= hg debuginstall checking encoding (ascii)... + checking Python lib (*lib*)... (glob) checking installed modules (*mercurial)... (glob) checking templates (*mercurial?templates)... (glob) checking commit editor...