changeset 39904 | 5fe0b880200e |
parent 39883 | 2209e72f9fcb |
child 39910 | 6e2c8f7f894e |
--- a/mercurial/windows.py Sat Sep 29 02:02:35 2018 -0400 +++ b/mercurial/windows.py Tue Sep 25 21:16:12 2018 -0400 @@ -519,6 +519,9 @@ If gid is None, return the name of the current group.""" return None +def readlink(pathname): + return pycompat.fsencode(os.readlink(pycompat.fsdecode(pathname))) + def removedirs(name): """special version of os.removedirs that does not remove symlinked directories or junction points if they actually contain files"""