localrepo: use self.wvfs.islink directly
authorPierre-Yves David <pierre-yves.david@ens-lyon.org>
Fri, 05 Aug 2016 14:19:31 +0200
changeset 31428 9b361478b03a
parent 31427 b2fb0fd239b8
child 31429 2471368281d1
localrepo: use self.wvfs.islink directly We are about to deprecate the helper function.
mercurial/localrepo.py
--- a/mercurial/localrepo.py	Thu Mar 16 10:10:00 2017 +0530
+++ b/mercurial/localrepo.py	Fri Aug 05 14:19:31 2016 +0200
@@ -1028,7 +1028,7 @@
         self._datafilters[name] = filter
 
     def wread(self, filename):
-        if self._link(filename):
+        if self.wvfs.islink(filename):
             data = self.wvfs.readlink(filename)
         else:
             data = self.wvfs.read(filename)