[PATCH 3 of 6 V1] posix: add alias 'unlink' for os.unlink

Adrian Buehlmann adrian at cadifra.com
Tue Jan 11 07:41:57 CST 2011


# HG changeset patch
# User Adrian Buehlmann <adrian at cadifra.com>
# Date 1294751416 -3600
# Node ID 6cdc45c780e121737a5663fc078bd093b1c64e80
# Parent  da928be61cea20f81cfacb56bfb9f968f9b101bc
posix: add alias 'unlink' for os.unlink

This reintroduces util.unlink, for both POSIX and Windows.

Note that this new unlink function now has different semantics than the
unlink() we had before changeset 6bf39d88c857 ("rename util.unlink to
unlinkpath").

diff --git a/mercurial/posix.py b/mercurial/posix.py
--- a/mercurial/posix.py
+++ b/mercurial/posix.py
@@ -13,6 +13,7 @@ posixfile = open
 nulldev = '/dev/null'
 normpath = os.path.normpath
 samestat = os.path.samestat
+unlink = os.unlink
 rename = os.rename
 expandglobs = False
 


More information about the Mercurial-devel mailing list