Mercurial > hg
changeset 31145:11a97785f75c
localrepo: deprecated 'repo.wopener' (API)
The "new" 'repo.wvfs' attribute have been around for almost 5 years. I think we
can deprecate the old form now ;-)
author | Pierre-Yves David <pierre-yves.david@ens-lyon.org> |
---|---|
date | Fri, 05 Aug 2016 13:53:45 +0200 |
parents | afcc4b4a0826 |
children | 16d8bec0177d |
files | mercurial/localrepo.py |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/localrepo.py Fri Aug 05 13:49:05 2016 +0200 +++ b/mercurial/localrepo.py Fri Aug 05 13:53:45 2016 +0200 @@ -260,7 +260,6 @@ self.vfs = None # vfs to access the store part of the repository self.svfs = None - self.wopener = self.wvfs self.root = self.wvfs.base self.path = self.wvfs.join(".hg") self.origroot = path @@ -380,6 +379,11 @@ # generic mapping between names and nodes self.names = namespaces.namespaces() + @property + def wopener(self): + self.ui.deprecwarn("use 'repo.wvfs' instead of 'repo.wopener'", '4.2') + return self.wvfs + def close(self): self._writecaches()