# HG changeset patch # User Boris Feld # Date 1507559503 -7200 # Node ID 1faa34347b247d710b4207ad8a95d744c5c9b3ea # Parent c2d2e18f97004a81b08b22d6e9961f3714d7693a configitems: update default value of 'phases.new-commit' Now that mq is cleaned up, we can rely on the config register for the default value. We switch the default from the integer to human readable value to help with future automatic documentation that could be generated from the config register. diff -r c2d2e18f9700 -r 1faa34347b24 mercurial/configitems.py --- a/mercurial/configitems.py Mon Oct 09 17:33:03 2017 +0200 +++ b/mercurial/configitems.py Mon Oct 09 16:31:43 2017 +0200 @@ -396,7 +396,7 @@ default='follow', ) coreconfigitem('phases', 'new-commit', - default=dynamicdefault, + default='draft', ) coreconfigitem('phases', 'publish', default=True, diff -r c2d2e18f9700 -r 1faa34347b24 mercurial/phases.py --- a/mercurial/phases.py Mon Oct 09 17:33:03 2017 +0200 +++ b/mercurial/phases.py Mon Oct 09 16:31:43 2017 +0200 @@ -619,7 +619,7 @@ Handle all possible values for the phases.new-commit options. """ - v = ui.config('phases', 'new-commit', draft) + v = ui.config('phases', 'new-commit') try: return phasenames.index(v) except ValueError: