Patchwork [7,of,7] cleanup: drop the deprecated 'localrepo._link' method

login
register
mail settings
Submitter Pierre-Yves David
Date May 2, 2017, 11:21 p.m.
Message ID <ab22f1288b553014d382.1493767306@nodosa.octopoid.net>
Download mbox | patch
Permalink /patch/20357/
State Accepted
Headers show

Comments

Pierre-Yves David - May 2, 2017, 11:21 p.m.
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david@ens-lyon.org>
# 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.

Patch

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 = []