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

Pierre-Yves David pierre-yves.david at ens-lyon.org
Tue May 2 19:21:42 EDT 2017


# HG changeset patch
# User Pierre-Yves David <pierre-yves.david at 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.

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()
 


More information about the Mercurial-devel mailing list