mercurial/localrepo.py
changeset 25625 ce9e231265c1
parent 25624 f0745da75056
child 25629 52e5f68d8363
equal deleted inserted replaced
25624:f0745da75056 25625:ce9e231265c1
   796 
   796 
   797     def local(self):
   797     def local(self):
   798         return self
   798         return self
   799 
   799 
   800     def publishing(self):
   800     def publishing(self):
   801         return self.ui.configbool('phases', 'publish', True)
   801         # it's safe (and desirable) to trust the publish flag unconditionally
       
   802         # so that we don't finalize changes shared between users via ssh or nfs
       
   803         return self.ui.configbool('phases', 'publish', True, untrusted=True)
   802 
   804 
   803     def cancopy(self):
   805     def cancopy(self):
   804         # so statichttprepo's override of local() works
   806         # so statichttprepo's override of local() works
   805         if not self.local():
   807         if not self.local():
   806             return False
   808             return False