vfs: add lexists() in current api
authorChinmay Joshi <c@chinmayjoshi.com>
Tue, 27 May 2014 23:02:05 +0530
changeset 21563 764b691b8bda
parent 21562 dbf292f65b09
child 21573 4af19d39706e
vfs: add lexists() in current api lexists is added in current API of vfs.
mercurial/scmutil.py
--- a/mercurial/scmutil.py	Tue May 27 21:56:03 2014 +0530
+++ b/mercurial/scmutil.py	Tue May 27 23:02:05 2014 +0530
@@ -178,6 +178,9 @@
     def islink(self, path=None):
         return os.path.islink(self.join(path))
 
+    def lexists(self, path=None):
+        return os.path.lexists(self.join(path))
+
     def lstat(self, path=None):
         return os.lstat(self.join(path))