Submitter | Yuya Nishihara |
---|---|
Date | Nov. 14, 2018, 1:32 p.m. |
Message ID | <e5def171282a30ea82ba.1542202359@mimosa> |
Download | mbox | patch |
Permalink | /patch/36574/ |
State | Accepted |
Headers | show |
Comments
Patch
diff --git a/hgext/blackbox.py b/hgext/blackbox.py --- a/hgext/blackbox.py +++ b/hgext/blackbox.py @@ -157,18 +157,15 @@ def wrapui(ui): if self._bbvfs: ui = self - else: + elif lastui and lastui._bbvfs: # certain ui instances exist outside the context of # a repo, so just default to the last blackbox that # was seen. ui = lastui - - if not ui: - return - vfs = ui._bbvfs - if not vfs: + else: return + vfs = ui._bbvfs repo = ui._bbrepo lastui = ui