# HG changeset patch # User Pierre-Yves David # Date 1489562837 25200 # Node ID fb1b5cd17664218f73ed6ba604973b817932593e # Parent 4cffaf8c4853fa94ea5175c70f8d64b26ecffca2 localrepo: deprecate 'wfile' The method had very few users and the modern form is shorter. So let us deprecates another method of the localrepo class. diff -r 4cffaf8c4853 -r fb1b5cd17664 mercurial/localrepo.py --- a/mercurial/localrepo.py Wed Mar 15 00:31:59 2017 -0700 +++ b/mercurial/localrepo.py Wed Mar 15 00:27:17 2017 -0700 @@ -977,6 +977,7 @@ return self.dirstate.pathto(f, cwd) def wfile(self, f, mode='r'): + self.ui.deprecwarn("use 'repo.wvfs' instead of 'repo.wfile'", '4.1') return self.wvfs(f, mode) def _link(self, f):