mercurial/transaction.py
changeset 49994 3128018e878b
parent 49993 2f348babe30d
child 49995 27fd12eca557
--- a/mercurial/transaction.py	Tue Feb 14 18:59:04 2023 +0100
+++ b/mercurial/transaction.py	Tue Feb 14 20:04:17 2023 +0100
@@ -670,6 +670,12 @@
 
         quick = self._can_quick_abort(entries)
         try:
+            if not quick:
+                self._report(_(b"transaction abort!\n"))
+            for cat in sorted(self._abortcallback):
+                self._abortcallback[cat](self)
+            # Prevent double usage and help clear cycles.
+            self._abortcallback = None
             if quick:
                 self._do_quick_abort(entries)
             else:
@@ -699,12 +705,7 @@
 
     def _do_full_abort(self, entries):
         """(Noisily) rollback all the change introduced by the transaction"""
-        self._report(_(b"transaction abort!\n"))
         try:
-            for cat in sorted(self._abortcallback):
-                self._abortcallback[cat](self)
-            # Prevent double usage and help clear cycles.
-            self._abortcallback = None
             _playback(
                 self._journal,
                 self._report,