Mercurial > public > mercurial-scm > hg-stable
diff 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 |
line wrap: on
line diff
--- a/mercurial/hg.py Fri Aug 19 21:25:25 2005 -0800 +++ b/mercurial/hg.py Fri Aug 19 21:36:57 2005 -0800 @@ -2106,8 +2106,10 @@ if not path: raise RepoError("no remote repository path specified") - cmd = "ssh %s 'hg -R %s serve --stdio'" - cmd = cmd % (args, path) + sshcmd = self.ui.config("ui", "ssh", "ssh") + remotecmd = self.ui.config("ui", "remotecmd", "hg") + cmd = "%s %s '%s -R %s serve --stdio'" + cmd = cmd % (sshcmd, args, remotecmd, path) self.pipeo, self.pipei, self.pipee = os.popen3(cmd)