diff hg_delta_editor.py @ 6:1a5bb173170b

Fixes for win32 compatibility. Changes suggested by Shun-ichi GOTO, with some alterations by me.
author Augie Fackler <durin42@gmail.com>
date Thu, 02 Oct 2008 09:13:08 -0500
parents f2636cfed115
children c89f53103502
line wrap: on
line diff
--- a/hg_delta_editor.py
+++ b/hg_delta_editor.py
@@ -8,6 +8,7 @@ import traceback
 from mercurial import context
 from mercurial import hg
 from mercurial import ui
+from mercurial import util
 from mercurial import revlog
 from mercurial import node
 from svn import delta
@@ -27,7 +28,7 @@ def pickle_atomic(data, file_path, dir=N
     except:
         raise
     else:
-        os.rename(path, file_path)
+        util.rename(path, file_path)
 
 def stash_exception_on_self(fn):
     """Stash any exception raised in the method on self.