Mercurial > public > mercurial-scm > hg-stable
diff mercurial/scmutil.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 | 7f025c9b7865 |
children | 7c0f40f4f7bf |
line wrap: on
line diff
--- a/mercurial/scmutil.py Sat Mar 24 15:09:33 2018 +0900 +++ b/mercurial/scmutil.py Sat Mar 24 15:10:51 2018 +0900 @@ -42,6 +42,7 @@ ) from .utils import ( + procutil, stringutil, ) @@ -293,7 +294,7 @@ if abort or warn: msg = util.checkwinfilename(f) if msg: - msg = "%s: %s" % (msg, util.shellquote(f)) + msg = "%s: %s" % (msg, procutil.shellquote(f)) if abort: raise error.Abort(msg) ui.warn(_("warning: %s\n") % msg) @@ -1090,7 +1091,7 @@ # external commands should be run relative to the repo root cmd = spec[6:] proc = subprocess.Popen(cmd, shell=True, bufsize=-1, - close_fds=util.closefds, + close_fds=procutil.closefds, stdout=subprocess.PIPE, cwd=repo.root) src = proc.stdout else: @@ -1114,7 +1115,7 @@ src.close() if proc and proc.returncode != 0: raise error.Abort(_("extdata command '%s' failed: %s") - % (cmd, util.explainexit(proc.returncode)[0])) + % (cmd, procutil.explainexit(proc.returncode)[0])) return data