perf: close transaction in perffncachewrite
This fixes a bug, and brings CPython behaviour on this test into
line with PyPy.
--- a/contrib/perf.py Sun Dec 27 23:55:54 2015 +0900
+++ b/contrib/perf.py Sun Dec 27 23:55:54 2015 +0900
@@ -441,6 +441,7 @@
s.fncache.write(tr)
timer(d)
lock.release()
+ tr.close()
fm.end()
@command('perffncacheencode', formatteropts)
--- a/tests/test-contrib-perf.t Sun Dec 27 23:55:54 2015 +0900
+++ b/tests/test-contrib-perf.t Sun Dec 27 23:55:54 2015 +0900
@@ -123,8 +123,6 @@
$ hg perffncacheencode
$ hg perffncacheload
$ hg perffncachewrite
- transaction abort!
- rollback completed
$ hg perfheads
$ hg perfindex
$ hg perfloadmarkers