tests/test-commandserver.t
changeset 34765 f3e4a5ad0d90
parent 34555 989e884d1be9
child 34852 d45236f3d38e
--- 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):