mercurial/sshpeer.py
changeset 31197 764f4581d1f3
parent 29733 bb04f96df51c
child 31953 cc2382b60007
equal deleted inserted replaced
31196:3af9a9628ecf 31197: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