Mercurial > hg-stable
comparison mercurial/localrepo.py @ 31382:7548522742b5
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.
author | Pierre-Yves David <pierre-yves.david@ens-lyon.org> |
---|---|
date | Fri, 05 Aug 2016 14:09:04 +0200 |
parents | 42a7195541a1 |
children | ecc87acb4d10 |
comparison
equal
deleted
inserted
replaced
31381:06440ba06bc0 | 31382:7548522742b5 |
---|---|
930 if self.sharedpath != self.path: | 930 if self.sharedpath != self.path: |
931 return 'store' | 931 return 'store' |
932 return None | 932 return None |
933 | 933 |
934 def join(self, f, *insidef): | 934 def join(self, f, *insidef): |
935 self.ui.deprecwarn("use 'repo.vfs.join' instead of 'repo.join'", '4.0') | |
935 return self.vfs.join(os.path.join(f, *insidef)) | 936 return self.vfs.join(os.path.join(f, *insidef)) |
936 | 937 |
937 def wjoin(self, f, *insidef): | 938 def wjoin(self, f, *insidef): |
938 return self.vfs.reljoin(self.root, f, *insidef) | 939 return self.vfs.reljoin(self.root, f, *insidef) |
939 | 940 |