localrepo: deprecate 'wfile'
authorPierre-Yves David <pierre-yves.david@ens-lyon.org>
Wed, 15 Mar 2017 00:27:17 -0700
changeset 31418 fb1b5cd17664
parent 31417 4cffaf8c4853
child 31419 1fc3d1f02865
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.
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):