auto-push: move config help in the extension help
authorPierre-Yves David <pierre-yves.david@ens-lyon.org>
Wed, 03 May 2017 12:25:53 +0200
changeset 2311 26d638e419df
parent 2309 9f09cabe679e
child 2312 b9ce138eca63
auto-push: move config help in the extension help That is a better spot than the extension itself.
README
hgext3rd/evolve/__init__.py
--- a/README	Tue May 02 17:43:34 2017 +0200
+++ b/README	Wed May 03 12:25:53 2017 +0200
@@ -118,9 +118,7 @@
  - improve message about obsolete working copy parent,
  - improve message issued  when accessing hidden nodes (4.2 only),
  - introduce a new caches to reduce the impact of evolution on read-only commands,
- - add a 'experimental.auto-publish' config. Set it so 'warn' to get a warning
-   when a push is publishing some draft changesets and 'abort' to prevent that
-   to happen at all.
+ - add a 'experimental.auto-publish' config. See `hg help -e evolve` for details.
 
 6.0.2 - in progress
 -------------------
--- a/hgext3rd/evolve/__init__.py	Tue May 02 17:43:34 2017 +0200
+++ b/hgext3rd/evolve/__init__.py	Wed May 03 12:25:53 2017 +0200
@@ -33,6 +33,17 @@
 experimental protocol are also supported for a longer time in the extensions to
 help people transitioning. (The extensions is currently compatible down to
 Mercurial version 3.8).
+
+New Config:
+
+    [experimental]
+    # Set to control the behavior when pushing draft changesets to a publishing
+    # repository. Possible value:
+    # * ignore: current core behavior (default)
+    # * warn: proceed with the push, but issue a warning
+    # * abort: abort the push
+    auto-publish = ignore
+
 """