[PATCH 6 of 7] cleanup: drop the deprecated 'localrepo.wfile' method
Pierre-Yves David
pierre-yves.david at ens-lyon.org
Tue May 2 19:21:45 EDT 2017
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david at 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.
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')
More information about the Mercurial-devel
mailing list