Mercurial > public > mercurial-scm > hg
comparison mercurial/hg.py @ 961:3e11d5038649
Add --ssh and --remotecmd to push
This uses the new setconfig options passing mechanism
author | mpm@selenic.com |
---|---|
date | Fri, 19 Aug 2005 21:36:57 -0800 |
parents | ff484cc157d6 |
children | 4a9a753e8232 |
comparison
equal
deleted
inserted
replaced
960:abfb5cc97fcd | 961:3e11d5038649 |
---|---|
2104 path = self.path or "" | 2104 path = self.path or "" |
2105 | 2105 |
2106 if not path: | 2106 if not path: |
2107 raise RepoError("no remote repository path specified") | 2107 raise RepoError("no remote repository path specified") |
2108 | 2108 |
2109 cmd = "ssh %s 'hg -R %s serve --stdio'" | 2109 sshcmd = self.ui.config("ui", "ssh", "ssh") |
2110 cmd = cmd % (args, path) | 2110 remotecmd = self.ui.config("ui", "remotecmd", "hg") |
2111 cmd = "%s %s '%s -R %s serve --stdio'" | |
2112 cmd = cmd % (sshcmd, args, remotecmd, path) | |
2111 | 2113 |
2112 self.pipeo, self.pipei, self.pipee = os.popen3(cmd) | 2114 self.pipeo, self.pipei, self.pipee = os.popen3(cmd) |
2113 | 2115 |
2114 def readerr(self): | 2116 def readerr(self): |
2115 while 1: | 2117 while 1: |