diff -r 803b7569c9ea -r 5fe0b880200e mercurial/windows.py --- 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"""