mercurial/util.py
changeset 13282 c01eea6c455b
parent 13279 eed22340b7aa
child 13313 0c493e5ce8e9
--- a/mercurial/util.py	Tue Jan 11 14:10:16 2011 +0100
+++ b/mercurial/util.py	Tue Jan 11 14:10:16 2011 +0100
@@ -911,7 +911,7 @@
                 return atomictempfile(f, mode, self.createmode)
             try:
                 if 'w' in mode:
-                    os.unlink(f)
+                    unlink(f)
                     nlink = 0
                 else:
                     # nlinks() may behave differently for files on Windows