diff tests/test-hook.t @ 49994:3128018e878b

transaction: run abort callback in all cases Previously, these possibly important callback were "forgotten" when running a quick rollback. This is now fixed, as the tests shown.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Tue, 14 Feb 2023 20:04:17 +0100
parents f68b0a5d3211
children ab806355fccb
line wrap: on
line diff
--- a/tests/test-hook.t	Tue Feb 14 18:59:04 2023 +0100
+++ b/tests/test-hook.t	Tue Feb 14 20:04:17 2023 +0100
@@ -644,6 +644,15 @@
   HG_TXNNAME=push
   HG_URL=file:$TESTTMP/a
   
+  txnabort Python hook: bundle2,changes,source,txnid,txnname,url
+  txnabort hook: HG_BUNDLE2=1
+  HG_HOOKNAME=txnabort.1
+  HG_HOOKTYPE=txnabort
+  HG_SOURCE=push
+  HG_TXNID=TXN:$ID$
+  HG_TXNNAME=push
+  HG_URL=file:$TESTTMP/a
+  
   abort: prepushkey hook exited with status 1
   [40]
   $ cd ../a