##// END OF EJS Templates
blackbox: remove _bbvfs state...
Jun Wu -
r34112:029b33ad default
parent child Browse files
Show More
@@ -82,19 +82,23 b' def wrapui(ui):'
82 else:
82 else:
83 self._bbinlog = False
83 self._bbinlog = False
84 self._bbrepo = getattr(src, '_bbrepo', None)
84 self._bbrepo = getattr(src, '_bbrepo', None)
85 self._bbvfs = getattr(src, '_bbvfs', None)
86
85
87 def _partialinit(self):
86 def _partialinit(self):
88 if util.safehasattr(self, '_bbvfs'):
87 if self._bbvfs:
89 return
88 return
90 self._bbinlog = False
89 self._bbinlog = False
91 self._bbrepo = None
90 self._bbrepo = None
92 self._bbvfs = None
93
91
94 def copy(self):
92 def copy(self):
95 self._partialinit()
93 self._partialinit()
96 return self.__class__(self)
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 @util.propertycache
102 @util.propertycache
99 def track(self):
103 def track(self):
100 return self.configlist('blackbox', 'track', ['*'])
104 return self.configlist('blackbox', 'track', ['*'])
@@ -194,7 +198,6 b' def wrapui(ui):'
194 def setrepo(self, repo):
198 def setrepo(self, repo):
195 self._bbinlog = False
199 self._bbinlog = False
196 self._bbrepo = repo
200 self._bbrepo = repo
197 self._bbvfs = repo.vfs
198
201
199 ui.__class__ = blackboxui
202 ui.__class__ = blackboxui
200 uimod.ui = blackboxui
203 uimod.ui = blackboxui
General Comments 0
You need to be logged in to leave comments. Login now