configitems: register the 'bugzilla.mocklog' config
authorBoris Feld <boris.feld@octobus.net>
Fri, 07 Jul 2017 10:04:03 +0200
changeset 33432 fbfecd1dbfb5
parent 33431 fd6eb444f2e1
child 33433 f793e535b4b9
configitems: register the 'bugzilla.mocklog' config
tests/test-bugzilla.t
--- a/tests/test-bugzilla.t	Thu Jul 13 22:57:11 2017 -0400
+++ 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):