# HG changeset patch # User Pierre-Yves David # Date 1470398025 -7200 # Node ID 11a97785f75cb69b6803758a367b8bebf46f257b # Parent afcc4b4a08263bf0a9f12e70c1396d2dad52f5f4 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 ;-) diff -r afcc4b4a0826 -r 11a97785f75c mercurial/localrepo.py --- 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()