Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/localrepo.py @ 31155: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 | 3eaff87a0a89 |
comparison
equal
deleted
inserted
replaced
31154:afcc4b4a0826 | 31155:11a97785f75c |
---|---|
258 self.wvfs = scmutil.vfs(path, expandpath=True, realpath=True) | 258 self.wvfs = scmutil.vfs(path, expandpath=True, realpath=True) |
259 # vfs to access the content of the repository | 259 # vfs to access the content of the repository |
260 self.vfs = None | 260 self.vfs = None |
261 # vfs to access the store part of the repository | 261 # vfs to access the store part of the repository |
262 self.svfs = None | 262 self.svfs = None |
263 self.wopener = self.wvfs | |
264 self.root = self.wvfs.base | 263 self.root = self.wvfs.base |
265 self.path = self.wvfs.join(".hg") | 264 self.path = self.wvfs.join(".hg") |
266 self.origroot = path | 265 self.origroot = path |
267 self.auditor = pathutil.pathauditor(self.root, self._checknested) | 266 self.auditor = pathutil.pathauditor(self.root, self._checknested) |
268 self.nofsauditor = pathutil.pathauditor(self.root, self._checknested, | 267 self.nofsauditor = pathutil.pathauditor(self.root, self._checknested, |
377 # - bookmark changes | 376 # - bookmark changes |
378 self.filteredrevcache = {} | 377 self.filteredrevcache = {} |
379 | 378 |
380 # generic mapping between names and nodes | 379 # generic mapping between names and nodes |
381 self.names = namespaces.namespaces() | 380 self.names = namespaces.namespaces() |
381 | |
382 @property | |
383 def wopener(self): | |
384 self.ui.deprecwarn("use 'repo.wvfs' instead of 'repo.wopener'", '4.2') | |
385 return self.wvfs | |
382 | 386 |
383 def close(self): | 387 def close(self): |
384 self._writecaches() | 388 self._writecaches() |
385 | 389 |
386 def _loadextensions(self): | 390 def _loadextensions(self): |