# HG changeset patch # User Pierre-Yves David # Date 1436565493 -3600 # Node ID 89a1103bf139cf9a700a61a872c7004d1765fc52 # Parent 4140d680784e2d1c9d78df76bf514014a384ee82# Parent a8a4c8b8550d93b6abb48acc64fabd04aa338af0 merge with stable diff -r 4140d680784e -r 89a1103bf139 hgext/inhibit.py --- a/hgext/inhibit.py Thu Jun 25 13:33:50 2015 -0700 +++ b/hgext/inhibit.py Fri Jul 10 22:58:13 2015 +0100 @@ -155,14 +155,16 @@ def _createmarkers(orig, repo, relations, flag=0, date=None, metadata=None): """wrap markers create to make sure we de-inhibit target nodes""" # wrapping transactio to unify the one in each function - tr = repo.transaction('add-obsolescence-marker') + lock = tr = None try: + lock = repo.lock() + tr = repo.transaction('add-obsolescence-marker') orig(repo, relations, flag, date, metadata) precs = (r[0].node() for r in relations) _deinhibitmarkers(repo, precs) tr.close() finally: - tr.release() + lockmod.release(tr, lock) def transactioncallback(orig, repo, *args, **kwargs): """ Wrap localrepo.transaction to inhibit new obsolete changes """