changeset 34764:af43cb56af4e

configitems: register the test 'logtoprocess.foo' config
author Boris Feld <boris.feld@octobus.net>
date Fri, 13 Oct 2017 23:46:37 +0200
parents 7c52a65010b1
children f3e4a5ad0d90
files tests/test-logtoprocess.t
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-logtoprocess.t	Fri Oct 13 23:10:49 2017 +0200
+++ b/tests/test-logtoprocess.t	Fri Oct 13 23:46:37 2017 +0200
@@ -12,6 +12,11 @@
   > from mercurial import registrar
   > cmdtable = {}
   > command = registrar.command(cmdtable)
+  > configtable = {}
+  > configitem = registrar.configitem(configtable)
+  > configitem('logtoprocess', 'foo',
+  >     default=None,
+  > )
   > @command(b'foo', [])
   > def foo(ui, repo):
   >     ui.log('foo', 'a message: %(bar)s\n', bar='spam')