hgext/blackbox.py
changeset 40632 da3bc2f54b02
parent 40631 345cdb93851b
child 40633 4a38a67d0e96
equal deleted inserted replaced
40631:345cdb93851b 40632:da3bc2f54b02
   154 
   154 
   155             if not '*' in self.track and not event in self.track:
   155             if not '*' in self.track and not event in self.track:
   156                 return
   156                 return
   157 
   157 
   158             if self._bbvfs:
   158             if self._bbvfs:
   159                 ui = self
   159                 ui = lastui = self
   160             elif lastui and lastui._bbvfs:
   160             elif lastui and lastui._bbvfs:
   161                 # certain ui instances exist outside the context of
   161                 # certain ui instances exist outside the context of
   162                 # a repo, so just default to the last blackbox that
   162                 # a repo, so just default to the last blackbox that
   163                 # was seen.
   163                 # was seen.
   164                 ui = lastui
   164                 ui = lastui
   165             else:
   165             else:
   166                 return
   166                 return
   167 
   167 
   168             vfs = ui._bbvfs
   168             vfs = ui._bbvfs
   169             repo = ui._bbrepo
   169             repo = ui._bbrepo
   170             lastui = ui
       
   171 
   170 
   172             if getattr(ui, '_bbinlog', False):
   171             if getattr(ui, '_bbinlog', False):
   173                 # recursion and failure guard
   172                 # recursion and failure guard
   174                 return
   173                 return
   175             ui._bbinlog = True
   174             ui._bbinlog = True