# HG changeset patch # User Pierre-Yves David # Date 2016-08-11 12:51:19 # Node ID 98b9846a131e2006171ea136351c6d2dc76f7d8a # Parent a76d5ba7ac4331e10e9e057ebc90f8fce6de531a perf: release lock after transaction in perffncachewrite The transaction should be closed within the lock. diff --git a/contrib/perf.py b/contrib/perf.py --- a/contrib/perf.py +++ b/contrib/perf.py @@ -575,8 +575,8 @@ def perffncachewrite(ui, repo, **opts): s.fncache._dirty = True s.fncache.write(tr) timer(d) + tr.close() lock.release() - tr.close() fm.end() @command('perffncacheencode', formatteropts)