--- 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