vfs: add unlinkpath to vfs
authorChinmay Joshi <c@chinmayjoshi.com>
Thu, 05 Jun 2014 15:16:44 +0530
changeset 21716 90f9be5adade
parent 21715 3eb43b706174
child 21717 2a095d3442e0
vfs: add unlinkpath to vfs This patch adds unlinkpath() function in vfs to replace util.unlinkpath().
mercurial/scmutil.py
--- 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)