Mercurial > hg
changeset 24693:0d28b0df77ea
vfs: add removedirs
author | FUJIWARA Katsunori <foozy@lares.dti.ne.jp> |
---|---|
date | Sat, 11 Apr 2015 00:47:09 +0900 |
parents | 144883a8d0d4 |
children | f282db2834f9 |
files | mercurial/scmutil.py |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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