Show More
@@ -82,19 +82,23 b' def wrapui(ui):' | |||
|
82 | 82 | else: |
|
83 | 83 | self._bbinlog = False |
|
84 | 84 | self._bbrepo = getattr(src, '_bbrepo', None) |
|
85 | self._bbvfs = getattr(src, '_bbvfs', None) | |
|
86 | 85 | |
|
87 | 86 | def _partialinit(self): |
|
88 |
if |
|
|
87 | if self._bbvfs: | |
|
89 | 88 | return |
|
90 | 89 | self._bbinlog = False |
|
91 | 90 | self._bbrepo = None |
|
92 | self._bbvfs = None | |
|
93 | 91 | |
|
94 | 92 | def copy(self): |
|
95 | 93 | self._partialinit() |
|
96 | 94 | return self.__class__(self) |
|
97 | 95 | |
|
96 | @property | |
|
97 | def _bbvfs(self): | |
|
98 | repo = getattr(self, '_bbrepo', None) | |
|
99 | if repo: | |
|
100 | return repo.vfs | |
|
101 | ||
|
98 | 102 | @util.propertycache |
|
99 | 103 | def track(self): |
|
100 | 104 | return self.configlist('blackbox', 'track', ['*']) |
@@ -194,7 +198,6 b' def wrapui(ui):' | |||
|
194 | 198 | def setrepo(self, repo): |
|
195 | 199 | self._bbinlog = False |
|
196 | 200 | self._bbrepo = repo |
|
197 | self._bbvfs = repo.vfs | |
|
198 | 201 | |
|
199 | 202 | ui.__class__ = blackboxui |
|
200 | 203 | uimod.ui = blackboxui |
General Comments 0
You need to be logged in to leave comments.
Login now