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

Simon Farnsworth simonfar at fb.com
Mon Mar 6 11:28:02 UTC 2017


# HG changeset patch
# User Simon Farnsworth <simonfar at 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.

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")))
 


More information about the Mercurial-devel mailing list