Patchwork [1,of,7] sshpeer: set a blockedtag when starting ssh

login
register
mail settings
Submitter Simon Farnsworth
Date March 6, 2017, 11:28 a.m.
Message ID <dc84da3efb972a86375c.1488799682@devvm022.lla2.facebook.com>
Download mbox | patch
Permalink /patch/18935/
State Accepted
Headers show

Comments

Simon Farnsworth - March 6, 2017, 11:28 a.m.
# HG changeset patch
# User Simon Farnsworth <simonfar@fb.com>
# Date 1488799509 28800
#      Mon Mar 06 03:25:09 2017 -0800
# Node ID dc84da3efb972a86375c59fbb859bc31fc2d6335
# Parent  bca31954883ec7ffd16ee940bb84f12f60d286c8
sshpeer: set a blockedtag when starting ssh

So that the data is readable.

Patch

diff --git a/mercurial/sshpeer.py b/mercurial/sshpeer.py
--- a/mercurial/sshpeer.py
+++ b/mercurial/sshpeer.py
@@ -150,7 +150,7 @@ 
                 util.shellquote("%s init %s" %
                     (_serverquote(remotecmd), _serverquote(self.path))))
             ui.debug('running %s\n' % cmd)
-            res = ui.system(cmd)
+            res = ui.system(cmd, blockedtag='sshpeer')
             if res != 0:
                 self._abort(error.RepoError(_("could not create remote repo")))