[Updated] D12127: transaction: add a way to know a transaction has been finalized

marmoute (Pierre-Yves David) phabricator at mercurial-scm.org
Wed Feb 2 10:53:20 UTC 2022


Closed by commit rHG3f618484eeb6: transaction: add a way to know a transaction has been finalized (authored by marmoute).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D12127?vs=32023&id=32030

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D12127/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D12127

AFFECTED FILES
  mercurial/transaction.py

CHANGE DETAILS

diff --git a/mercurial/transaction.py b/mercurial/transaction.py
--- a/mercurial/transaction.py
+++ b/mercurial/transaction.py
@@ -229,6 +229,10 @@
         if self._journal:
             self._abort()
 
+    @property
+    def finalized(self):
+        return self._finalizecallback is None
+
     @active
     def startgroup(self):
         """delay registration of file entry



To: marmoute, #hg-reviewers, Alphare
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20220202/c08c387c/attachment-0002.html>


More information about the Mercurial-patches mailing list