[PATCH 3 of 4] vfs: add lstat() in api

Chinmay Joshi c at chinmayjoshi.com
Tue May 27 13:58:02 CDT 2014


# HG changeset patch
# User Chinmay Joshi <c at chinmayjoshi.com>
# Date 1401215049 -19800
#      Tue May 27 23:54:09 2014 +0530
# Node ID 0375426f4b794f252af6d1d7fbfd600a68071027
# Parent  efb2278e2384a03ba4524ad2d6c68483cf1486d5
vfs: add lstat() in api

This change adds lstat() in file API of vfs.

diff --git a/mercurial/scmutil.py b/mercurial/scmutil.py
--- a/mercurial/scmutil.py
+++ b/mercurial/scmutil.py
@@ -226,6 +226,9 @@
     def unlink(self, path=None):
         return util.unlink(self.join(path))
 
+    def unlinkpath(self, path=None, ignoremissing=True):
+        return util.unlinkpath(self.join(path), ignoremissing)
+
     def utime(self, path=None, t=None):
         return os.utime(self.join(path), t)
 


More information about the Mercurial-devel mailing list