localrepo: deprecate 'repo.join' in favor of 'repo.vfs.join'
authorPierre-Yves David <pierre-yves.david@ens-lyon.org>
Fri, 05 Aug 2016 14:09:04 +0200
changeset 31373 7548522742b5
parent 31372 06440ba06bc0
child 31374 d30fb3de4b40
localrepo: deprecate 'repo.join' in favor of 'repo.vfs.join' localrepo have an insane amount of method. Accessing the feature through the vfs is not really harder and allow us to schedule that method for removal.
mercurial/localrepo.py
--- a/mercurial/localrepo.py	Sun Mar 12 12:54:11 2017 -0700
+++ b/mercurial/localrepo.py	Fri Aug 05 14:09:04 2016 +0200
@@ -932,6 +932,7 @@
         return None
 
     def join(self, f, *insidef):
+        self.ui.deprecwarn("use 'repo.vfs.join' instead of 'repo.join'", '4.0')
         return self.vfs.join(os.path.join(f, *insidef))
 
     def wjoin(self, f, *insidef):