perf: close transaction in perffncachewrite
authorBryan O'Sullivan <bos@serpentine.com>
Sun, 27 Dec 2015 23:55:54 +0900
changeset 27526 11f2e496bdc9
parent 27525 cba62f996780
child 27527 dbfaf361c062
perf: close transaction in perffncachewrite This fixes a bug, and brings CPython behaviour on this test into line with PyPy.
contrib/perf.py
tests/test-contrib-perf.t
--- 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