changeset 6632:7771e80a7280

topic: release transaction using lockmod This mostly helps pytype, but maybe we also avoid potential issues here? Anyway, using lockmod is the modern way to release locks and transactions, so let's use it.
author Anton Shestakov <av6@dwimlabs.net>
date Sun, 31 Dec 2023 17:00:44 -0300
parents 0f8dbea4458e
children 216901c821fe
files hgext3rd/topic/__init__.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgext3rd/topic/__init__.py	Mon Jan 01 19:00:18 2024 -0300
+++ b/hgext3rd/topic/__init__.py	Sun Dec 31 17:00:44 2023 -0300
@@ -1278,7 +1278,7 @@
                     _applyconvertbmarktopic(ui, repo, targetrevs, revnum, bmark, tr)
                 tr.close()
             finally:
-                tr.release()
+                lockmod.release(tr)
     finally:
         lockmod.release(lock, wlock)