comparison hgext/convert/cvs.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 c6061cadb400
children 34758397ad1b
comparison
equal deleted inserted replaced
37119:d4a2e0d5d042 37120:a8a902d7176e
16 encoding, 16 encoding,
17 error, 17 error,
18 pycompat, 18 pycompat,
19 util, 19 util,
20 ) 20 )
21 from mercurial.utils import dateutil 21 from mercurial.utils import (
22 dateutil,
23 procutil,
24 )
22 25
23 from . import ( 26 from . import (
24 common, 27 common,
25 cvsps, 28 cvsps,
26 ) 29 )
195 cmd = [rsh, '-l', user, host] + cmd 198 cmd = [rsh, '-l', user, host] + cmd
196 else: 199 else:
197 cmd = [rsh, host] + cmd 200 cmd = [rsh, host] + cmd
198 201
199 # popen2 does not support argument lists under Windows 202 # popen2 does not support argument lists under Windows
200 cmd = [util.shellquote(arg) for arg in cmd] 203 cmd = [procutil.shellquote(arg) for arg in cmd]
201 cmd = util.quotecommand(' '.join(cmd)) 204 cmd = procutil.quotecommand(' '.join(cmd))
202 self.writep, self.readp = util.popen2(cmd) 205 self.writep, self.readp = procutil.popen2(cmd)
203 206
204 self.realroot = root 207 self.realroot = root
205 208
206 self.writep.write("Root %s\n" % root) 209 self.writep.write("Root %s\n" % root)
207 self.writep.write("Valid-responses ok error Valid-requests Mode" 210 self.writep.write("Valid-responses ok error Valid-requests Mode"