changeset 28173:11f2e496bdc9

perf: close transaction in perffncachewrite This fixes a bug, and brings CPython behaviour on this test into line with PyPy.
author Bryan O'Sullivan <bos@serpentine.com>
date Sun, 27 Dec 2015 23:55:54 +0900
parents cba62f996780
children dbfaf361c062
files contrib/perf.py tests/test-contrib-perf.t
diffstat 2 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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)
--- 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