Mercurial > hg
comparison mercurial/posix.py @ 13280:6052bbc7aabd
reintroduces util.unlink, for POSIX and Windows.
windows: factor it out of rename
posix: add alias 'unlink' for os.unlink
Note that this new unlink function now has different semantics than the
unlink() we had before changeset 6bf39d88c857 ("rename util.unlink to
unlinkpath").
author | Adrian Buehlmann <adrian@cadifra.com> |
---|---|
date | Tue, 11 Jan 2011 14:10:16 +0100 |
parents | e98bf6948092 |
children | f1fa8f481c7c |
comparison
equal
deleted
inserted
replaced
13279:eed22340b7aa | 13280:6052bbc7aabd |
---|---|
11 | 11 |
12 posixfile = open | 12 posixfile = open |
13 nulldev = '/dev/null' | 13 nulldev = '/dev/null' |
14 normpath = os.path.normpath | 14 normpath = os.path.normpath |
15 samestat = os.path.samestat | 15 samestat = os.path.samestat |
16 unlink = os.unlink | |
16 rename = os.rename | 17 rename = os.rename |
17 expandglobs = False | 18 expandglobs = False |
18 | 19 |
19 umask = os.umask(0) | 20 umask = os.umask(0) |
20 os.umask(umask) | 21 os.umask(umask) |