--- a/mercurial/dirstate.py Wed Aug 24 05:42:41 2011 -0400
+++ b/mercurial/dirstate.py Thu Aug 25 20:21:04 2011 -0400
@@ -453,7 +453,7 @@
write(e)
write(f)
st.write(cs.getvalue())
- st.rename()
+ st.close()
self._lastnormaltime = None
self._dirty = self._dirtypl = False