Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/sshpeer.py @ 23270:41c03b7592ed
util.system: use ui.system() in place of optional ui.fout parameter
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sat, 08 Nov 2014 13:06:22 +0900 |
parents | ee297602a208 |
children | 14ac0c1579cd |
comparison
equal
deleted
inserted
replaced
23269:d9d8d2e0f701 | 23270:41c03b7592ed |
---|---|
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.debug('running %s\n' % cmd) | 54 ui.debug('running %s\n' % cmd) |
55 res = util.system(cmd, out=ui.fout) | 55 res = ui.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) |
60 | 60 |