[PATCH 01 of 10] configitems: register the 'bugzilla.mocklog' config

Boris Feld boris.feld at octobus.net
Wed Jul 12 12:41:24 UTC 2017


# HG changeset patch
# User Boris Feld <boris.feld at octobus.net>
# Date 1499414643 -7200
#      Fri Jul 07 10:04:03 2017 +0200
# Node ID fcb4529a633634e7885ed4b79a62743a52a4a6b3
# Parent  26e4ba058215e536d3827befbea99ff6203d35f8
# EXP-Topic config.register.bugzilla
configitems: register the 'bugzilla.mocklog' config

diff -r 26e4ba058215 -r fcb4529a6336 tests/test-bugzilla.t
--- a/tests/test-bugzilla.t	Fri Jul 07 10:04:01 2017 +0200
+++ b/tests/test-bugzilla.t	Fri Jul 07 10:04:03 2017 +0200
@@ -3,7 +3,14 @@
   $ cat <<EOF > bzmock.py
   > from __future__ import absolute_import
   > from mercurial import extensions
+  > from mercurial import registrar
   > 
+  > configtable = {}
+  > configitem = registrar.configitem(configtable)
+  > 
+  > configitem('bugzilla', 'mocklog',
+  >     default=None,
+  > )
   > def extsetup(ui):
   >     bugzilla = extensions.find('bugzilla')
   >     class bzmock(bugzilla.bzaccess):


More information about the Mercurial-devel mailing list