##// END OF EJS Templates
debuginstall: expand the editor path before searching for it (issue4380)...
Matt Harbison -
r24891:be491500 stable
parent child Browse files
Show More
@@ -2370,6 +2370,7 def debuginstall(ui):
2370 2370 # editor
2371 2371 ui.status(_("checking commit editor...\n"))
2372 2372 editor = ui.geteditor()
2373 editor = util.expandpath(editor)
2373 2374 cmdpath = util.findexe(shlex.split(editor)[0])
2374 2375 if not cmdpath:
2375 2376 if editor == 'vi':
@@ -24,3 +24,20 hg debuginstall with no username
24 24 (specify a username in your configuration file)
25 25 1 problems detected, please check your install!
26 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
General Comments 0
You need to be logged in to leave comments. Login now