Mercurial > hg
changeset 21716:90f9be5adade
vfs: add unlinkpath to vfs
This patch adds unlinkpath() function in vfs to replace util.unlinkpath().
author | Chinmay Joshi <c@chinmayjoshi.com> |
---|---|
date | Thu, 05 Jun 2014 15:16:44 +0530 |
parents | 3eb43b706174 |
children | 2a095d3442e0 |
files | mercurial/scmutil.py |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/scmutil.py Thu Jun 05 22:20:32 2014 +0900 +++ b/mercurial/scmutil.py Thu Jun 05 15:16:44 2014 +0530 @@ -226,6 +226,9 @@ def unlink(self, path=None): return util.unlink(self.join(path)) + def unlinkpath(self, path=None, ignoremissing=False): + return util.unlinkpath(self.join(path), ignoremissing) + def utime(self, path=None, t=None): return os.utime(self.join(path), t)