Mercurial > public > mercurial-scm > hg-stable
diff mercurial/sshrepo.py @ 5293:32ec518ee3cb
Merge with crew-stable
author | Patrick Mezard <pmezard@gmail.com> |
---|---|
date | Mon, 10 Sep 2007 23:53:23 +0200 |
parents | 65dc707606ed 5a65d870871d |
children | e2e8e977a6cb 7939c71f3132 |
line wrap: on
line diff
--- a/mercurial/sshrepo.py Fri Sep 07 17:54:38 2007 +0200 +++ b/mercurial/sshrepo.py Mon Sep 10 23:53:23 2007 +0200 @@ -35,7 +35,7 @@ cmd = cmd % (sshcmd, args, remotecmd, self.path) ui.note('running %s\n' % cmd) - res = os.system(cmd) + res = util.system(cmd) if res != 0: self.raise_(repo.RepoError(_("could not create remote repo"))) @@ -51,6 +51,7 @@ cmd = '%s %s "%s -R %s serve --stdio"' cmd = cmd % (sshcmd, args, remotecmd, self.path) + cmd = util.quotecommand(cmd) ui.note('running %s\n' % cmd) self.pipeo, self.pipei, self.pipee = os.popen3(cmd, 'b')