mercurial/windows.py
changeset 24692 144883a8d0d4
parent 24653 83f6c4733ecc
child 24885 eea3977e6fca
--- a/mercurial/windows.py	Sat Apr 11 00:47:09 2015 +0900
+++ b/mercurial/windows.py	Sat Apr 11 00:47:09 2015 +0900
@@ -270,7 +270,7 @@
     If gid is None, return the name of the current group."""
     return None
 
-def _removedirs(name):
+def removedirs(name):
     """special version of os.removedirs that does not remove symlinked
     directories or junction points if they actually contain files"""
     if osutil.listdir(name):
@@ -297,7 +297,7 @@
             raise
     # try removing directories that might now be empty
     try:
-        _removedirs(os.path.dirname(f))
+        removedirs(os.path.dirname(f))
     except OSError:
         pass