Show More
@@ -131,7 +131,7 b' class blackboxlogger(object):' | |||||
131 | def __init__(self, ui): |
|
131 | def __init__(self, ui): | |
132 | self._repo = None |
|
132 | self._repo = None | |
133 | self._inlog = False |
|
133 | self._inlog = False | |
134 | self.track = ui.configlist('blackbox', 'track') |
|
134 | self._trackedevents = set(ui.configlist('blackbox', 'track')) | |
135 |
|
135 | |||
136 | @property |
|
136 | @property | |
137 | def _bbvfs(self): |
|
137 | def _bbvfs(self): | |
@@ -142,9 +142,12 b' class blackboxlogger(object):' | |||||
142 | vfs = None |
|
142 | vfs = None | |
143 | return vfs |
|
143 | return vfs | |
144 |
|
144 | |||
|
145 | def tracked(self, event): | |||
|
146 | return b'*' in self._trackedevents or event in self._trackedevents | |||
|
147 | ||||
145 | def log(self, ui, event, msg, opts): |
|
148 | def log(self, ui, event, msg, opts): | |
146 | global _lastlogger |
|
149 | global _lastlogger | |
147 |
if not |
|
150 | if not self.tracked(event): | |
148 | return |
|
151 | return | |
149 |
|
152 | |||
150 | if self._bbvfs: |
|
153 | if self._bbvfs: |
General Comments 0
You need to be logged in to leave comments.
Login now