Submitter | phabricator |
---|---|
Date | Jan. 13, 2020, 3:06 p.m. |
Message ID | <73db60ec0387e266b7f54fc1a576cfb5@localhost.localdomain> |
Download | mbox | patch |
Permalink | /patch/44275/ |
State | Not Applicable |
Headers | show |
Comments
Patch
diff --git a/mercurial/transaction.py b/mercurial/transaction.py --- a/mercurial/transaction.py +++ b/mercurial/transaction.py @@ -456,6 +456,12 @@ return self._anypending @active + def hasfinalize(self, category): + """check is a callback already exist for a category + """ + return category in self._finalizecallback + + @active def addfinalize(self, category, callback): """add a callback to be called when the transaction is closed