changeset 34765:f3e4a5ad0d90

configitems: register the test 'failafterfinalize.fail' config
author Boris Feld <boris.feld@octobus.net>
date Fri, 13 Oct 2017 23:53:06 +0200
parents af43cb56af4e
children d957d4475a64
files tests/test-commandserver.t
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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):