Patchwork [6,of,7] cleanup: drop the deprecated 'localrepo.wfile' method

login
register
mail settings
Submitter Pierre-Yves David
Date May 2, 2017, 11:21 p.m.
Message ID <60049ac2f9aa68fe3963.1493767305@nodosa.octopoid.net>
Download mbox | patch
Permalink /patch/20358/
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 1493683495 -7200
#      Tue May 02 02:04:55 2017 +0200
# Node ID 60049ac2f9aa68fe396323783efd7e95a8fccde0
# Parent  90d3c819491b18b46cf38982220fd4eb67dfa174
# 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 60049ac2f9aa
cleanup: drop the deprecated 'localrepo.wfile' method

This was deprecated in favor of 'localrepo.wvfs.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
@@ -865,10 +865,6 @@  class localrepository(object):
     def pathto(self, f, cwd=None):
         return self.dirstate.pathto(f, cwd)
 
-    def wfile(self, f, mode='r'):
-        self.ui.deprecwarn("use 'repo.wvfs' instead of 'repo.wfile'", '4.2')
-        return self.wvfs(f, mode)
-
     def _link(self, f):
         self.ui.deprecwarn("use 'repo.wvfs.islink' instead of 'repo._link'",
                            '4.2')