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

login
register
mail settings
Submitter Boris Feld
Date July 12, 2017, 12:41 p.m.
Message ID <fcb4529a633634e7885e.1499863284@FB>
Download mbox | patch
Permalink /patch/22253/
State Accepted
Headers show

Comments

Boris Feld - July 12, 2017, 12:41 p.m.
# HG changeset patch
# User Boris Feld <boris.feld@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

Patch

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):