--- a/mercurial/util.py Wed Jan 05 15:56:03 2011 +0100
+++ b/mercurial/util.py Sun Jan 02 19:34:41 2011 +0100
@@ -431,7 +431,7 @@
return check
-def unlink(f):
+def unlinkpath(f):
"""unlink and remove the directory if it is empty"""
os.unlink(f)
# try removing directories that might now be empty