Mercurial > public > mercurial-scm > hg-stable
diff mercurial/scmutil.py @ 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 | 9d28fd795215 |
children | 90f9be5adade |
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))