changeset 15057 | 774da7121fc9 |
parent 14960 | 497819817307 |
child 15407 | ee112eb69d2a |
--- a/mercurial/revlog.py Wed Aug 24 05:42:41 2011 -0400 +++ b/mercurial/revlog.py Thu Aug 25 20:21:04 2011 -0400 @@ -946,9 +946,9 @@ e = self._io.packentry(self.index[i], self.node, self.version, i) fp.write(e) - # if we don't call rename, the temp file will never replace the + # if we don't call close, the temp file will never replace the # real index - fp.rename() + fp.close() tr.replace(self.indexfile, trindex * self._io.size) self._chunkclear()