configitems: register the test 'failafterfinalize.fail' config
authorBoris Feld <boris.feld@octobus.net>
Fri, 13 Oct 2017 23:53:06 +0200
changeset 34765 f3e4a5ad0d90
parent 34764 af43cb56af4e
child 34766 d957d4475a64
configitems: register the test 'failafterfinalize.fail' config
tests/test-commandserver.t
--- a/tests/test-commandserver.t	Fri Oct 13 23:46:37 2017 +0200
+++ b/tests/test-commandserver.t	Fri Oct 13 23:53:06 2017 +0200
@@ -808,6 +808,14 @@
   $ cat > $TESTTMP/failafterfinalize.py <<EOF
   > # extension to abort transaction after finalization forcibly
   > from mercurial import commands, error, extensions, lock as lockmod
+  > from mercurial import registrar
+  > cmdtable = {}
+  > command = registrar.command(cmdtable)
+  > configtable = {}
+  > configitem = registrar.configitem(configtable)
+  > configitem('failafterfinalize', 'fail',
+  >     default=None,
+  > )
   > def fail(tr):
   >     raise error.Abort('fail after finalization')
   > def reposetup(ui, repo):