Mercurial > hg
comparison tests/test-install.t @ 24891:be4915009b09 stable
debuginstall: expand the editor path before searching for it (issue4380)
The editor launches without expanding the path with commits because the shell
does that for us.
If the path isn't an executable, the expanded path is displayed, which is
probably more useful than the unexpanded path. For example, in cmd.exe, '~'
expands to C:\Users\$user. But it expands to C:/mingw/msys/1.0/home/$user in
MinGW.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Thu, 30 Apr 2015 23:02:52 -0400 |
parents | f1dfef0a9352 |
children | b1160299a175 |
comparison
equal
deleted
inserted
replaced
24890:cba84b06b702 | 24891:be4915009b09 |
---|---|
22 checking username... | 22 checking username... |
23 no username supplied | 23 no username supplied |
24 (specify a username in your configuration file) | 24 (specify a username in your configuration file) |
25 1 problems detected, please check your install! | 25 1 problems detected, please check your install! |
26 [1] | 26 [1] |
27 | |
28 path variables are expanded (~ is the same as $TESTTMP) | |
29 $ mkdir tools | |
30 $ touch tools/testeditor.exe | |
31 #if execbit | |
32 $ chmod 755 tools/testeditor.exe | |
33 #endif | |
34 $ hg debuginstall --config ui.editor=~/tools/testeditor.exe | |
35 checking encoding (ascii)... | |
36 checking Python executable (*) (glob) | |
37 checking Python version (*) (glob) | |
38 checking Python lib (*lib*)... (glob) | |
39 checking installed modules (*mercurial)... (glob) | |
40 checking templates (*mercurial?templates)... (glob) | |
41 checking commit editor... | |
42 checking username... | |
43 no problems detected |