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

login
register
mail settings
Submitter Pierre-Yves David
Date May 2, 2017, 11:21 p.m.
Message ID <b5fd76b6014877912b44.1493767301@nodosa.octopoid.net>
Download mbox | patch
Permalink /patch/20353/
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 1493683275 -7200
#      Tue May 02 02:01:15 2017 +0200
# Node ID b5fd76b6014877912b44773d47afc6f81a59fe1b
# Parent  b11231e14d45d2a28c18429807283bee307c6bf8
# 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 b5fd76b60148
cleanup: drop the deprecated 'localrepo.wopener' method

This was deprecated in favor of 'localrepo.wvfs'. 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
@@ -386,11 +386,6 @@  class localrepository(object):
         self.names = namespaces.namespaces()
 
     @property
-    def wopener(self):
-        self.ui.deprecwarn("use 'repo.wvfs' instead of 'repo.wopener'", '4.2')
-        return self.wvfs
-
-    @property
     def opener(self):
         self.ui.deprecwarn("use 'repo.vfs' instead of 'repo.opener'", '4.2')
         return self.vfs