safeguard: the new default for auto-publish is 'publish'
authorAnton Shestakov <av6@dwimlabs.net>
Sat, 01 Dec 2018 16:07:55 +0800
changeset 4286 f9a9d2fe4af5
parent 4285 69fb9e41ce2b
child 4287 b7b6a4524ef7
safeguard: the new default for auto-publish is 'publish'
hgext3rd/evolve/safeguard.py
--- a/hgext3rd/evolve/safeguard.py	Fri Sep 21 11:44:34 2018 -0400
+++ b/hgext3rd/evolve/safeguard.py	Sat Dec 01 16:07:55 2018 +0800
@@ -25,7 +25,7 @@
 
         def checkpush(self, pushop):
             super(noautopublishrepo, self).checkpush(pushop)
-            behavior = self.ui.config('experimental', 'auto-publish', 'default')
+            behavior = self.ui.config('experimental', 'auto-publish', 'publish')
             nocheck = behavior not in ('warn', 'abort')
             if nocheck or getattr(pushop, 'publish', False):
                 return