From patchwork Tue May 2 23:21:46 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [7,of,7] cleanup: drop the deprecated 'localrepo._link' method From: Pierre-Yves David X-Patchwork-Id: 20357 Message-Id: To: mercurial-devel@mercurial-scm.org Date: Wed, 03 May 2017 01:21:46 +0200 # HG changeset patch # User Pierre-Yves David # Date 1493683539 -7200 # Tue May 02 02:05:39 2017 +0200 # Node ID ab22f1288b553014d3827849fec9fa82121831e1 # Parent 60049ac2f9aa68fe396323783efd7e95a8fccde0 # EXP-Topic dropcompat # Available At https://www.mercurial-scm.org/repo/users/marmoute/mercurial/ # hg pull https://www.mercurial-scm.org/repo/users/marmoute/mercurial/ -r ab22f1288b55 cleanup: drop the deprecated 'localrepo._link' method This was deprecated in favor of 'localrepo.wvfs.islink'. We can now drop it for the future 4.3. diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py --- a/mercurial/localrepo.py +++ b/mercurial/localrepo.py @@ -865,11 +865,6 @@ class localrepository(object): def pathto(self, f, cwd=None): return self.dirstate.pathto(f, cwd) - def _link(self, f): - self.ui.deprecwarn("use 'repo.wvfs.islink' instead of 'repo._link'", - '4.2') - return self.wvfs.islink(f) - def _loadfilter(self, filter): if filter not in self.filterpats: l = []