Mercurial > hg
comparison mercurial/scmutil.py @ 24693:0d28b0df77ea
vfs: add removedirs
author | FUJIWARA Katsunori <foozy@lares.dti.ne.jp> |
---|---|
date | Sat, 11 Apr 2015 00:47:09 +0900 |
parents | ca3a90096c95 |
children | 467a33142425 |
comparison
equal
deleted
inserted
replaced
24692:144883a8d0d4 | 24693:0d28b0df77ea |
---|---|
313 def rename(self, src, dst): | 313 def rename(self, src, dst): |
314 return util.rename(self.join(src), self.join(dst)) | 314 return util.rename(self.join(src), self.join(dst)) |
315 | 315 |
316 def readlink(self, path): | 316 def readlink(self, path): |
317 return os.readlink(self.join(path)) | 317 return os.readlink(self.join(path)) |
318 | |
319 def removedirs(self, path=None): | |
320 """Remove a leaf directory and all empty intermediate ones | |
321 """ | |
322 return util.removedirs(self.join(path)) | |
318 | 323 |
319 def rmtree(self, path=None, ignore_errors=False, forcibly=False): | 324 def rmtree(self, path=None, ignore_errors=False, forcibly=False): |
320 """Remove a directory tree recursively | 325 """Remove a directory tree recursively |
321 | 326 |
322 If ``forcibly``, this tries to remove READ-ONLY files, too. | 327 If ``forcibly``, this tries to remove READ-ONLY files, too. |