mercurial/windows.py
changeset 39909 5fe0b880200e
parent 39888 2209e72f9fcb
child 39915 6e2c8f7f894e
equal deleted inserted replaced
39908:803b7569c9ea 39909:5fe0b880200e
   517     """Return the name of the group with the given gid.
   517     """Return the name of the group with the given gid.
   518 
   518 
   519     If gid is None, return the name of the current group."""
   519     If gid is None, return the name of the current group."""
   520     return None
   520     return None
   521 
   521 
       
   522 def readlink(pathname):
       
   523     return pycompat.fsencode(os.readlink(pycompat.fsdecode(pathname)))
       
   524 
   522 def removedirs(name):
   525 def removedirs(name):
   523     """special version of os.removedirs that does not remove symlinked
   526     """special version of os.removedirs that does not remove symlinked
   524     directories or junction points if they actually contain files"""
   527     directories or junction points if they actually contain files"""
   525     if listdir(name):
   528     if listdir(name):
   526         return
   529         return