# HG changeset patch # User Anton Shestakov # Date 1704052844 10800 # Node ID 7771e80a7280151cb52955e73236fb496df0e809 # Parent 0f8dbea4458e6ea9865a52553eb1c7d4f8ff4044 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. diff -r 0f8dbea4458e -r 7771e80a7280 hgext3rd/topic/__init__.py --- 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)