# HG changeset patch # User FUJIWARA Katsunori # Date 1428680829 -32400 # Node ID 0d28b0df77ea6d320b6cbc9b2695427516964d9b # Parent 144883a8d0d48b82e12024d067a07f23f5dd6587 vfs: add removedirs diff -r 144883a8d0d4 -r 0d28b0df77ea mercurial/scmutil.py --- a/mercurial/scmutil.py Sat Apr 11 00:47:09 2015 +0900 +++ b/mercurial/scmutil.py Sat Apr 11 00:47:09 2015 +0900 @@ -316,6 +316,11 @@ def readlink(self, path): return os.readlink(self.join(path)) + def removedirs(self, path=None): + """Remove a leaf directory and all empty intermediate ones + """ + return util.removedirs(self.join(path)) + def rmtree(self, path=None, ignore_errors=False, forcibly=False): """Remove a directory tree recursively