# HG changeset patch # User Yuya Nishihara # Date 1541922209 -32400 # Node ID da3bc2f54b0238c58a3bf64b409892725d2f252f # Parent 345cdb93851b25e3e68a798d64e0a48f06608102 blackbox: simply update global lastui variable at once diff -r 345cdb93851b -r da3bc2f54b02 hgext/blackbox.py --- a/hgext/blackbox.py Sun Nov 11 16:38:43 2018 +0900 +++ b/hgext/blackbox.py Sun Nov 11 16:43:29 2018 +0900 @@ -156,7 +156,7 @@ return if self._bbvfs: - ui = self + ui = lastui = self elif lastui and lastui._bbvfs: # certain ui instances exist outside the context of # a repo, so just default to the last blackbox that @@ -167,7 +167,6 @@ vfs = ui._bbvfs repo = ui._bbrepo - lastui = ui if getattr(ui, '_bbinlog', False): # recursion and failure guard