Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/localrepo.py @ 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 |
comparison
equal
deleted
inserted
replaced
18948:2f05fa162316 | 18949:138978f20180 |
---|---|
733 | 733 |
734 def wfile(self, f, mode='r'): | 734 def wfile(self, f, mode='r'): |
735 return self.wopener(f, mode) | 735 return self.wopener(f, mode) |
736 | 736 |
737 def _link(self, f): | 737 def _link(self, f): |
738 return os.path.islink(self.wjoin(f)) | 738 return self.wvfs.islink(f) |
739 | 739 |
740 def _loadfilter(self, filter): | 740 def _loadfilter(self, filter): |
741 if filter not in self.filterpats: | 741 if filter not in self.filterpats: |
742 l = [] | 742 l = [] |
743 for pat, cmd in self.ui.configitems(filter): | 743 for pat, cmd in self.ui.configitems(filter): |