author | Zachary Gramana <zgramana@pottsconsultinggroup.com> |
Thu, 05 May 2011 11:33:02 -0400 | |
changeset 14207 | c1cca38818b9 |
parent 14206 | 2bf60f158ecb |
child 14208 | d62d597b8974 |
--- a/mercurial/changelog.py Thu May 05 23:21:37 2011 +0800 +++ b/mercurial/changelog.py Thu May 05 11:33:02 2011 -0400 @@ -118,7 +118,9 @@ self.opener = self._realopener # move redirected index data back into place if self._divert: - n = self.opener(self.indexfile + ".a").name + nfile = self.opener(self.indexfile + ".a") + n = nfile.name + nfile.close() util.rename(n, n[:-2]) elif self._delaybuf: fp = self.opener(self.indexfile, 'a')