equal
deleted
inserted
replaced
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" |