changeset 2308:cb520d961d6a

Use platform path for renaming file in util.atomictempfile.rename()
author Thomas Arendsen Hein <thomas@intevation.de>
date Thu, 18 May 2006 21:01:38 +0200
parents 5b3a3e35f084
children b2f37c7026ca
files mercurial/util.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/util.py	Thu May 18 10:09:16 2006 -0700
+++ b/mercurial/util.py	Thu May 18 21:01:38 2006 +0200
@@ -734,7 +734,7 @@
         def rename(self):
             if not self.closed:
                 posixfile.close(self)
-                rename(self.temp, self.__name)
+                rename(self.temp, localpath(self.__name))
         def __del__(self):
             if not self.closed:
                 try: