diff mercurial/phases.py @ 34563:1faa34347b24

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.
author Boris Feld <boris.feld@octobus.net>
date Mon, 09 Oct 2017 16:31:43 +0200
parents 4ef472b975ff
children cdf833d7de98
line wrap: on
line diff
--- 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: