# HG changeset patch # User Bryan O'Sullivan # Date 1451228154 -32400 # Node ID 11f2e496bdc998b7c6ead505f217378744e58b8b # Parent cba62f996780ca0f308cc88a817769debcdeac48 perf: close transaction in perffncachewrite This fixes a bug, and brings CPython behaviour on this test into line with PyPy. diff --git a/contrib/perf.py b/contrib/perf.py --- a/contrib/perf.py +++ b/contrib/perf.py @@ -441,6 +441,7 @@ s.fncache.write(tr) timer(d) lock.release() + tr.close() fm.end() @command('perffncacheencode', formatteropts) diff --git a/tests/test-contrib-perf.t b/tests/test-contrib-perf.t --- a/tests/test-contrib-perf.t +++ b/tests/test-contrib-perf.t @@ -123,8 +123,6 @@ $ hg perffncacheencode $ hg perffncacheload $ hg perffncachewrite - transaction abort! - rollback completed $ hg perfheads $ hg perfindex $ hg perfloadmarkers