Show More
@@ -808,6 +808,14 b' cases.' | |||||
808 | $ cat > $TESTTMP/failafterfinalize.py <<EOF |
|
808 | $ cat > $TESTTMP/failafterfinalize.py <<EOF | |
809 | > # extension to abort transaction after finalization forcibly |
|
809 | > # extension to abort transaction after finalization forcibly | |
810 | > from mercurial import commands, error, extensions, lock as lockmod |
|
810 | > from mercurial import commands, error, extensions, lock as lockmod | |
|
811 | > from mercurial import registrar | |||
|
812 | > cmdtable = {} | |||
|
813 | > command = registrar.command(cmdtable) | |||
|
814 | > configtable = {} | |||
|
815 | > configitem = registrar.configitem(configtable) | |||
|
816 | > configitem('failafterfinalize', 'fail', | |||
|
817 | > default=None, | |||
|
818 | > ) | |||
811 | > def fail(tr): |
|
819 | > def fail(tr): | |
812 | > raise error.Abort('fail after finalization') |
|
820 | > raise error.Abort('fail after finalization') | |
813 | > def reposetup(ui, repo): |
|
821 | > def reposetup(ui, repo): |
General Comments 0
You need to be logged in to leave comments.
Login now