[PATCH 7 of 7] cleanup: drop the deprecated 'localrepo._link' method
Pierre-Yves David
pierre-yves.david at ens-lyon.org
Tue May 2 19:21:46 EDT 2017
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david at 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.
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 = []
More information about the Mercurial-devel
mailing list