Mercurial > evolve
diff hgext3rd/topic/__init__.py @ 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 | b669ded0fe00 |
children | 995c6163e97b |
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)