comparison mercurial/sshrepo.py @ 1332:404484c9628e

Help debugability: print ssh command being used when --verbose.
author Bryan O'Sullivan <bos@serpentine.com>
date Fri, 23 Sep 2005 10:32:19 -0700
parents 0fcde73dc3ca
children 94586af53d2f
comparison
equal deleted inserted replaced
1331:cfae1ed2d61f 1332:404484c9628e
30 sshcmd = self.ui.config("ui", "ssh", "ssh") 30 sshcmd = self.ui.config("ui", "ssh", "ssh")
31 remotecmd = self.ui.config("ui", "remotecmd", "hg") 31 remotecmd = self.ui.config("ui", "remotecmd", "hg")
32 cmd = '%s %s "%s -R %s serve --stdio"' 32 cmd = '%s %s "%s -R %s serve --stdio"'
33 cmd = cmd % (sshcmd, args, remotecmd, self.path) 33 cmd = cmd % (sshcmd, args, remotecmd, self.path)
34 34
35 ui.note('running %s\n' % cmd)
35 self.pipeo, self.pipei, self.pipee = os.popen3(cmd, 'b') 36 self.pipeo, self.pipei, self.pipee = os.popen3(cmd, 'b')
36 37
37 def readerr(self): 38 def readerr(self):
38 while 1: 39 while 1:
39 r,w,x = select.select([self.pipee], [], [], 0) 40 r,w,x = select.select([self.pipee], [], [], 0)