Mercurial > hg
diff contrib/phabricator.py @ 37120: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 | f8b65ff02e3e |
children | 6cf5f5b4eb57 |
line wrap: on
line diff
--- a/contrib/phabricator.py Sat Mar 24 15:09:33 2018 +0900 +++ b/contrib/phabricator.py Sat Mar 24 15:10:51 2018 +0900 @@ -66,6 +66,9 @@ url as urlmod, util, ) +from mercurial.utils import ( + procutil, +) cmdtable = {} command = registrar.command(cmdtable) @@ -161,7 +164,8 @@ data = urlencodenested(params) curlcmd = repo.ui.config('phabricator', 'curlcmd') if curlcmd: - sin, sout = util.popen2('%s -d @- %s' % (curlcmd, util.shellquote(url))) + sin, sout = procutil.popen2('%s -d @- %s' + % (curlcmd, procutil.shellquote(url))) sin.write(data) sin.close() body = sout.read()