##// END OF EJS Templates
util: remove ignored mode argument in popen[23]
Martin Geisler -
r8339:f55869ab default
parent child Browse files
Show More
@@ -267,7 +267,7 b' class convert_cvs(converter_source):'
267 # popen2 does not support argument lists under Windows
267 # popen2 does not support argument lists under Windows
268 cmd = [util.shellquote(arg) for arg in cmd]
268 cmd = [util.shellquote(arg) for arg in cmd]
269 cmd = util.quotecommand(' '.join(cmd))
269 cmd = util.quotecommand(' '.join(cmd))
270 self.writep, self.readp = util.popen2(cmd, 'b')
270 self.writep, self.readp = util.popen2(cmd)
271
271
272 self.realroot = root
272 self.realroot = root
273
273
@@ -987,7 +987,7 b' class svn_source(converter_source):'
987 arg = encodeargs(args)
987 arg = encodeargs(args)
988 hgexe = util.hgexecutable()
988 hgexe = util.hgexecutable()
989 cmd = '%s debugsvnlog' % util.shellquote(hgexe)
989 cmd = '%s debugsvnlog' % util.shellquote(hgexe)
990 stdin, stdout = util.popen2(cmd, 'b')
990 stdin, stdout = util.popen2(cmd)
991 stdin.write(arg)
991 stdin.write(arg)
992 stdin.close()
992 stdin.close()
993 return logstream(stdout)
993 return logstream(stdout)
@@ -62,7 +62,7 b' class sshrepository(repo.repository):'
62
62
63 cmd = util.quotecommand(cmd)
63 cmd = util.quotecommand(cmd)
64 ui.note(_('running %s\n') % cmd)
64 ui.note(_('running %s\n') % cmd)
65 self.pipeo, self.pipei, self.pipee = util.popen3(cmd, 'b')
65 self.pipeo, self.pipei, self.pipee = util.popen3(cmd)
66
66
67 # skip any noise generated by remote shell
67 # skip any noise generated by remote shell
68 self.do_cmd("hello")
68 self.do_cmd("hello")
@@ -38,12 +38,12 b' def _fastsha1(s):'
38
38
39 import subprocess
39 import subprocess
40 closefds = os.name == 'posix'
40 closefds = os.name == 'posix'
41 def popen2(cmd, mode='t', bufsize=-1):
41 def popen2(cmd, bufsize=-1):
42 p = subprocess.Popen(cmd, shell=True, bufsize=bufsize,
42 p = subprocess.Popen(cmd, shell=True, bufsize=bufsize,
43 close_fds=closefds,
43 close_fds=closefds,
44 stdin=subprocess.PIPE, stdout=subprocess.PIPE)
44 stdin=subprocess.PIPE, stdout=subprocess.PIPE)
45 return p.stdin, p.stdout
45 return p.stdin, p.stdout
46 def popen3(cmd, mode='t', bufsize=-1):
46 def popen3(cmd, bufsize=-1):
47 p = subprocess.Popen(cmd, shell=True, bufsize=bufsize,
47 p = subprocess.Popen(cmd, shell=True, bufsize=bufsize,
48 close_fds=closefds,
48 close_fds=closefds,
49 stdin=subprocess.PIPE, stdout=subprocess.PIPE,
49 stdin=subprocess.PIPE, stdout=subprocess.PIPE,
General Comments 0
You need to be logged in to leave comments. Login now