Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/sshrepo.py @ 7106:4674706b5b95
python2.6: use subprocess if available
author | Dirkjan Ochtman <dirkjan@ochtman.nl> |
---|---|
date | Sun, 05 Oct 2008 21:35:26 +0200 |
parents | 63b5f4c73c98 |
children | fe0a4ed4634f |
comparison
equal
deleted
inserted
replaced
7105:31837416ef4d | 7106:4674706b5b95 |
---|---|
59 cmd = '%s %s "%s -R %s serve --stdio"' | 59 cmd = '%s %s "%s -R %s serve --stdio"' |
60 cmd = cmd % (sshcmd, args, remotecmd, self.path) | 60 cmd = cmd % (sshcmd, args, remotecmd, self.path) |
61 | 61 |
62 cmd = util.quotecommand(cmd) | 62 cmd = util.quotecommand(cmd) |
63 ui.note(_('running %s\n') % cmd) | 63 ui.note(_('running %s\n') % cmd) |
64 self.pipeo, self.pipei, self.pipee = os.popen3(cmd, 'b') | 64 self.pipeo, self.pipei, self.pipee = util.popen3(cmd, 'b') |
65 | 65 |
66 # skip any noise generated by remote shell | 66 # skip any noise generated by remote shell |
67 self.do_cmd("hello") | 67 self.do_cmd("hello") |
68 r = self.do_cmd("between", pairs=("%s-%s" % ("0"*40, "0"*40))) | 68 r = self.do_cmd("between", pairs=("%s-%s" % ("0"*40, "0"*40))) |
69 lines = ["", "dummy"] | 69 lines = ["", "dummy"] |