mercurial/archival.py
changeset 15057 774da7121fc9
parent 13970 d13913355390
child 16919 51932c835b74
--- a/mercurial/archival.py	Wed Aug 24 05:42:41 2011 -0400
+++ b/mercurial/archival.py	Thu Aug 25 20:21:04 2011 -0400
@@ -195,7 +195,7 @@
             return
         f = self.opener(name, "w", atomictemp=True)
         f.write(data)
-        f.rename()
+        f.close()
         destfile = os.path.join(self.basedir, name)
         os.chmod(destfile, mode)