diff mercurial/configitems.py @ 40767:33d30fb1e4ae

push: config option to control behavior when pushing to a publishing server Pushing to a publishing server by mistake can lead to a difficult situation to solve because evolution doesn't work on public changesets. This new experimental config tries to help avoiding unintentionally (or at least being aware of) pushing to publishing remotes. `hg push --publish` can be used to make push succeed even when auto-publish is set to 'abort'.
author Anton Shestakov <av6@dwimlabs.net>
date Mon, 05 Nov 2018 13:52:19 +0800
parents 054d0fcba2c4
children 875d2af8cb4e
line wrap: on
line diff
--- a/mercurial/configitems.py	Fri Nov 30 17:42:55 2018 +0300
+++ b/mercurial/configitems.py	Mon Nov 05 13:52:19 2018 +0800
@@ -449,6 +449,9 @@
 coreconfigitem('experimental', 'archivemetatemplate',
     default=dynamicdefault,
 )
+coreconfigitem('experimental', 'auto-publish',
+    default='publish',
+)
 coreconfigitem('experimental', 'bundle-phases',
     default=False,
 )