Mercurial > hg
comparison tests/test-install.t @ 20740:535283a7f5dd
debuginstall: add Python information to debuginstall output (issue4128)
This change adds to the output of "hg debuginstall" information about the
Python being used by Mercurial. It adds both the path to the Python
executable (i.e. the value of sys.executable) and the version of Python
(specifically the major, minor, and micro versions).
Below is an example of what the output looks like after this change.
The marked lines are the new output lines:
$ hg debuginstall
checking encoding (UTF-8)...
-->showing Python executable (/Users/chris/.virtualenvs/default/bin/python)
-->showing Python version (2.7.6)
checking Python lib (/Users/chris/.virtualenvs/default/lib/python2.7)...
checking installed modules (/Users/chris/mercurial)...
checking templates (/Users/chris/mercurial/templates)...
checking commit editor...
checking username...
no problems detected
Note that we use the word "showing" without an ellipsis for the new lines
because, unlike the other lines (except for "Python lib" which will be
adjusted in a subsequent commit), no check follows the display of this
information.
author | Chris Jerdonek <chris.jerdonek@gmail.com> |
---|---|
date | Tue, 31 Dec 2013 00:37:16 -0800 |
parents | 5614f8cf0861 |
children | f1dfef0a9352 |
comparison
equal
deleted
inserted
replaced
20739:1b4f2399f3c4 | 20740:535283a7f5dd |
---|---|
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) |
7 checking commit editor... | 9 checking commit editor... |
8 checking username... | 10 checking username... |
9 no problems detected | 11 no problems detected |
10 | 12 |
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) |
17 checking commit editor... | 21 checking commit editor... |
18 checking username... | 22 checking username... |