Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/sshpeer.py @ 31207:764f4581d1f3
sshpeer: set a blockedtag when starting ssh
So that the data is readable.
author | Simon Farnsworth <simonfar@fb.com> |
---|---|
date | Mon, 06 Mar 2017 03:25:09 -0800 |
parents | bb04f96df51c |
children | cc2382b60007 |
comparison
equal
deleted
inserted
replaced
31206:3af9a9628ecf | 31207:764f4581d1f3 |
---|---|
148 if create: | 148 if create: |
149 cmd = '%s %s %s' % (sshcmd, args, | 149 cmd = '%s %s %s' % (sshcmd, args, |
150 util.shellquote("%s init %s" % | 150 util.shellquote("%s init %s" % |
151 (_serverquote(remotecmd), _serverquote(self.path)))) | 151 (_serverquote(remotecmd), _serverquote(self.path)))) |
152 ui.debug('running %s\n' % cmd) | 152 ui.debug('running %s\n' % cmd) |
153 res = ui.system(cmd) | 153 res = ui.system(cmd, blockedtag='sshpeer') |
154 if res != 0: | 154 if res != 0: |
155 self._abort(error.RepoError(_("could not create remote repo"))) | 155 self._abort(error.RepoError(_("could not create remote repo"))) |
156 | 156 |
157 self._validaterepo(sshcmd, args, remotecmd) | 157 self._validaterepo(sshcmd, args, remotecmd) |
158 | 158 |