changeset 27526: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	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