diff -r 803b7569c9ea -r 5fe0b880200e mercurial/util.py --- a/mercurial/util.py Sat Sep 29 02:02:35 2018 -0400 +++ b/mercurial/util.py Tue Sep 25 21:16:12 2018 -0400 @@ -112,6 +112,7 @@ pconvert = platform.pconvert poll = platform.poll posixfile = platform.posixfile +readlink = platform.readlink rename = platform.rename removedirs = platform.removedirs samedevice = platform.samedevice @@ -1841,7 +1842,7 @@ def readlock(pathname): try: - return os.readlink(pathname) + return readlink(pathname) except OSError as why: if why.errno not in (errno.EINVAL, errno.ENOSYS): raise