contrib/phabricator.py
changeset 37120 a8a902d7176e
parent 36818 f8b65ff02e3e
child 37800 6cf5f5b4eb57
--- 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()