Mercurial > public > mercurial-scm > hg-stable
diff mercurial/debugcommands.py @ 37123:a8a902d7176e
procutil: bulk-replace function calls to point to new module
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sat, 24 Mar 2018 15:10:51 +0900 |
parents | f0b6fbea00cf |
children | 8bac14ce5778 |
line wrap: on
line diff
--- a/mercurial/debugcommands.py Sat Mar 24 15:09:33 2018 +0900 +++ b/mercurial/debugcommands.py Sat Mar 24 15:10:51 2018 +0900 @@ -83,6 +83,7 @@ ) from .utils import ( dateutil, + procutil, stringutil, ) @@ -1254,9 +1255,9 @@ # editor editor = ui.geteditor() editor = util.expandpath(editor) - editorbin = util.shellsplit(editor)[0] + editorbin = procutil.shellsplit(editor)[0] fm.write('editor', _("checking commit editor... (%s)\n"), editorbin) - cmdpath = util.findexe(editorbin) + cmdpath = procutil.findexe(editorbin) fm.condwrite(not cmdpath and editor == 'vi', 'vinotfound', _(" No commit editor set and can't find %s in PATH\n" " (specify a commit editor in your configuration" @@ -2813,7 +2814,7 @@ # We start the SSH server in its own process so there is process # separation. This prevents a whole class of potential bugs around # shared state from interfering with server operation. - args = util.hgcmd() + [ + args = procutil.hgcmd() + [ '-R', repo.root, 'debugserve', '--sshstdio', ]