Use platform path for renaming file in util.atomictempfile.rename()
authorThomas Arendsen Hein <thomas@intevation.de>
Thu, 18 May 2006 21:01:38 +0200
changeset 2308 cb520d961d6a
parent 2307 5b3a3e35f084
child 2309 b2f37c7026ca
Use platform path for renaming file in util.atomictempfile.rename()
mercurial/util.py
--- 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: