equal
deleted
inserted
replaced
49 |
49 |
50 if create: |
50 if create: |
51 cmd = '%s %s %s' % (sshcmd, args, |
51 cmd = '%s %s %s' % (sshcmd, args, |
52 util.shellquote("%s init %s" % |
52 util.shellquote("%s init %s" % |
53 (_serverquote(remotecmd), _serverquote(self.path)))) |
53 (_serverquote(remotecmd), _serverquote(self.path)))) |
54 ui.note(_('running %s\n') % cmd) |
54 ui.debug('running %s\n' % cmd) |
55 res = util.system(cmd) |
55 res = util.system(cmd) |
56 if res != 0: |
56 if res != 0: |
57 self._abort(error.RepoError(_("could not create remote repo"))) |
57 self._abort(error.RepoError(_("could not create remote repo"))) |
58 |
58 |
59 self._validaterepo(sshcmd, args, remotecmd) |
59 self._validaterepo(sshcmd, args, remotecmd) |
66 self.cleanup() |
66 self.cleanup() |
67 |
67 |
68 cmd = '%s %s %s' % (sshcmd, args, |
68 cmd = '%s %s %s' % (sshcmd, args, |
69 util.shellquote("%s -R %s serve --stdio" % |
69 util.shellquote("%s -R %s serve --stdio" % |
70 (_serverquote(remotecmd), _serverquote(self.path)))) |
70 (_serverquote(remotecmd), _serverquote(self.path)))) |
71 self.ui.note(_('running %s\n') % cmd) |
71 self.ui.debug('running %s\n' % cmd) |
72 cmd = util.quotecommand(cmd) |
72 cmd = util.quotecommand(cmd) |
73 |
73 |
74 # while self.subprocess isn't used, having it allows the subprocess to |
74 # while self.subprocess isn't used, having it allows the subprocess to |
75 # to clean up correctly later |
75 # to clean up correctly later |
76 self.pipeo, self.pipei, self.pipee, self.subprocess = util.popen4(cmd) |
76 self.pipeo, self.pipei, self.pipee, self.subprocess = util.popen4(cmd) |