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

login
register
mail settings
Submitter Pierre-Yves David
Date May 2, 2017, 11:21 p.m.
Message ID <ea28399719169eaf0695.1493767302@nodosa.octopoid.net>
Download mbox | patch
Permalink /patch/20359/
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 1493683307 -7200
#      Tue May 02 02:01:47 2017 +0200
# Node ID ea28399719169eaf06951c66c3a7cc2e3beea48b
# Parent  b5fd76b6014877912b44773d47afc6f81a59fe1b
# 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 ea2839971916
cleanup: drop the deprecated 'localrepo.opener' method

This was deprecated in favor of 'localrepo.vfs'. 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
@@ -385,11 +385,6 @@  class localrepository(object):
         # generic mapping between names and nodes
         self.names = namespaces.namespaces()
 
-    @property
-    def opener(self):
-        self.ui.deprecwarn("use 'repo.vfs' instead of 'repo.opener'", '4.2')
-        return self.vfs
-
     def close(self):
         self._writecaches()