Mercurial > hg
changeset 31418:fb1b5cd17664
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.
author | Pierre-Yves David <pierre-yves.david@ens-lyon.org> |
---|---|
date | Wed, 15 Mar 2017 00:27:17 -0700 |
parents | 4cffaf8c4853 |
children | 1fc3d1f02865 |
files | mercurial/localrepo.py |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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):