localrepo: deprecated '_link'
authorPierre-Yves David <pierre-yves.david@ens-lyon.org>
Fri, 05 Aug 2016 14:15:45 +0200
changeset 31429 2471368281d1
parent 31428 9b361478b03a
child 31430 807387581d89
localrepo: deprecated '_link' That method had a total on 1 internal user... G: changed mercurial/localrepo.py
mercurial/localrepo.py
--- a/mercurial/localrepo.py	Fri Aug 05 14:19:31 2016 +0200
+++ b/mercurial/localrepo.py	Fri Aug 05 14:15:45 2016 +0200
@@ -981,6 +981,8 @@
         return self.wvfs(f, mode)
 
     def _link(self, f):
+        self.ui.deprecwarn("use 'repo.wvfs.islink' instead of 'repo._link'",
+                           '4.0')
         return self.wvfs.islink(f)
 
     def _loadfilter(self, filter):