Mercurial > hg
changeset 21563:764b691b8bda
vfs: add lexists() in current api
lexists is added in current API of vfs.
author | Chinmay Joshi <c@chinmayjoshi.com> |
---|---|
date | Tue, 27 May 2014 23:02:05 +0530 |
parents | dbf292f65b09 |
children | 4af19d39706e |
files | mercurial/scmutil.py |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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))