--- a/mercurial/hbisect.py Wed Aug 24 05:42:41 2011 -0400
+++ b/mercurial/hbisect.py Thu Aug 25 20:21:04 2011 -0400
@@ -150,7 +150,7 @@
for kind in state:
for node in state[kind]:
f.write("%s %s\n" % (kind, hex(node)))
- f.rename()
+ f.close()
finally:
wlock.release()