[PATCH] configitems: fixup default value of annotate config option

Boris Feld boris.feld at octobus.net
Mon Oct 16 13:43:44 UTC 2017


# HG changeset patch
# User Boris Feld <boris.feld at octobus.net>
# Date 1508159570 -7200
#      Mon Oct 16 15:12:50 2017 +0200
# Node ID b3c7b74f19ba08ef8c2b4056508cc1f287550587
# Parent  330d0b582ab38d35d9d521626e9d039044f38ecd
# EXP-Topic config.register.fixup
# Available At https://bitbucket.org/octobus/mercurial-devel/
#              hg pull https://bitbucket.org/octobus/mercurial-devel/ -r b3c7b74f19ba
configitems: fixup default value of annotate config option

It turned out that configbool is used for most of them so the registered
default value was wrong.

diff --git a/mercurial/configitems.py b/mercurial/configitems.py
--- a/mercurial/configitems.py
+++ b/mercurial/configitems.py
@@ -104,34 +104,34 @@
     generic=True,
 )
 coreconfigitem('annotate', 'nodates',
-    default=None,
+    default=False,
 )
 coreconfigitem('annotate', 'showfunc',
-    default=None,
+    default=False,
 )
 coreconfigitem('annotate', 'unified',
     default=None,
 )
 coreconfigitem('annotate', 'git',
-    default=None,
+    default=False,
 )
 coreconfigitem('annotate', 'ignorews',
-    default=None,
+    default=False,
 )
 coreconfigitem('annotate', 'ignorewsamount',
-    default=None,
+    default=False,
 )
 coreconfigitem('annotate', 'ignoreblanklines',
-    default=None,
+    default=False,
 )
 coreconfigitem('annotate', 'ignorewseol',
-    default=None,
+    default=False,
 )
 coreconfigitem('annotate', 'nobinary',
-    default=None,
+    default=False,
 )
 coreconfigitem('annotate', 'noprefix',
-    default=None,
+    default=False,
 )
 coreconfigitem('auth', 'cookiefile',
     default=None,


More information about the Mercurial-devel mailing list