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

login
register
mail settings
Submitter Pierre-Yves David
Date May 2, 2017, 11:21 p.m.
Message ID <90d3c819491b18b46cf3.1493767304@nodosa.octopoid.net>
Download mbox | patch
Permalink /patch/20356/
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 1493683436 -7200
#      Tue May 02 02:03:56 2017 +0200
# Node ID 90d3c819491b18b46cf38982220fd4eb67dfa174
# Parent  4faee12fe7e7667c919c745480e5afdb07398642
# 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 90d3c819491b
cleanup: drop the deprecated 'localrepo.join' method

This was deprecated in favor of 'localrepo.vfs.join'. 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
@@ -826,10 +826,6 @@  class localrepository(object):
             return 'store'
         return None
 
-    def join(self, f, *insidef):
-        self.ui.deprecwarn("use 'repo.vfs.join' instead of 'repo.join'", '4.2')
-        return self.vfs.join(os.path.join(f, *insidef))
-
     def wjoin(self, f, *insidef):
         return self.vfs.reljoin(self.root, f, *insidef)