mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 00:45:18 +03:00
f2ad8f39e0
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.
44 lines
1.4 KiB
Perl
44 lines
1.4 KiB
Perl
hg debuginstall
|
|
$ hg debuginstall
|
|
checking encoding (ascii)...
|
|
checking Python executable (*) (glob)
|
|
checking Python version (2.*) (glob)
|
|
checking Python lib (*lib*)... (glob)
|
|
checking installed modules (*mercurial)... (glob)
|
|
checking templates (*mercurial?templates)... (glob)
|
|
checking commit editor...
|
|
checking username...
|
|
no problems detected
|
|
|
|
hg debuginstall with no username
|
|
$ HGUSER= hg debuginstall
|
|
checking encoding (ascii)...
|
|
checking Python executable (*) (glob)
|
|
checking Python version (2.*) (glob)
|
|
checking Python lib (*lib*)... (glob)
|
|
checking installed modules (*mercurial)... (glob)
|
|
checking templates (*mercurial?templates)... (glob)
|
|
checking commit editor...
|
|
checking username...
|
|
no username supplied
|
|
(specify a username in your configuration file)
|
|
1 problems detected, please check your install!
|
|
[1]
|
|
|
|
path variables are expanded (~ is the same as $TESTTMP)
|
|
$ mkdir tools
|
|
$ touch tools/testeditor.exe
|
|
#if execbit
|
|
$ chmod 755 tools/testeditor.exe
|
|
#endif
|
|
$ hg debuginstall --config ui.editor=~/tools/testeditor.exe
|
|
checking encoding (ascii)...
|
|
checking Python executable (*) (glob)
|
|
checking Python version (*) (glob)
|
|
checking Python lib (*lib*)... (glob)
|
|
checking installed modules (*mercurial)... (glob)
|
|
checking templates (*mercurial?templates)... (glob)
|
|
checking commit editor...
|
|
checking username...
|
|
no problems detected
|