Mercurial > public > mercurial-scm > hg-stable
diff mercurial/scmutil.py @ 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 | 764b691b8bda |
children | dfacdd6a111e |
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)