Mercurial > hg
changeset 18949:138978f20180
localrepo: use "vfs.islink()" instead of "os.path.islink()"
author | FUJIWARA Katsunori <foozy@lares.dti.ne.jp> |
---|---|
date | Mon, 15 Apr 2013 01:22:15 +0900 |
parents | 2f05fa162316 |
children | 647e3b0c8751 |
files | mercurial/localrepo.py mercurial/scmutil.py |
diffstat | 2 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/localrepo.py Mon Apr 15 01:22:15 2013 +0900 +++ b/mercurial/localrepo.py Mon Apr 15 01:22:15 2013 +0900 @@ -735,7 +735,7 @@ return self.wopener(f, mode) def _link(self, f): - return os.path.islink(self.wjoin(f)) + return self.wvfs.islink(f) def _loadfilter(self, filter): if filter not in self.filterpats:
--- a/mercurial/scmutil.py Mon Apr 15 01:22:15 2013 +0900 +++ b/mercurial/scmutil.py Mon Apr 15 01:22:15 2013 +0900 @@ -242,6 +242,9 @@ def isdir(self, path=None): return os.path.isdir(self.join(path)) + def islink(self, path=None): + return os.path.islink(self.join(path)) + def makedir(self, path=None, notindexed=True): return util.makedir(self.join(path), notindexed)