# HG changeset patch
# User Boris Feld <boris.f...@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):
_______________________________________________
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel

Reply via email to