changeset 25625:ce9e231265c1

publishing: unconditionally trust publishing flag Unfortunately, there are currently no tests for this behavior because we lack a good way of testing trust.
author Matt Mackall <mpm@selenic.com>
date Thu, 18 Jun 2015 15:39:52 -0500
parents f0745da75056
children ea0902e3128e
files mercurial/localrepo.py
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/localrepo.py	Thu Jun 18 15:34:22 2015 -0500
+++ b/mercurial/localrepo.py	Thu Jun 18 15:39:52 2015 -0500
@@ -798,7 +798,9 @@
         return self
 
     def publishing(self):
-        return self.ui.configbool('phases', 'publish', True)
+        # it's safe (and desirable) to trust the publish flag unconditionally
+        # so that we don't finalize changes shared between users via ssh or nfs
+        return self.ui.configbool('phases', 'publish', True, untrusted=True)
 
     def cancopy(self):
         # so statichttprepo's override of local() works