Show More
@@ -77,9 +77,13 b' def wrapui(ui):' | |||||
77 | class blackboxui(ui.__class__): |
|
77 | class blackboxui(ui.__class__): | |
78 | @property |
|
78 | @property | |
79 | def _bbvfs(self): |
|
79 | def _bbvfs(self): | |
|
80 | vfs = None | |||
80 | repo = getattr(self, '_bbrepo', None) |
|
81 | repo = getattr(self, '_bbrepo', None) | |
81 | if repo: |
|
82 | if repo: | |
82 |
|
|
83 | vfs = repo.vfs | |
|
84 | if not vfs.isdir('.'): | |||
|
85 | vfs = None | |||
|
86 | return vfs | |||
83 |
|
87 | |||
84 | @util.propertycache |
|
88 | @util.propertycache | |
85 | def track(self): |
|
89 | def track(self): | |
@@ -136,6 +140,10 b' def wrapui(ui):' | |||||
136 |
|
140 | |||
137 | if not ui: |
|
141 | if not ui: | |
138 | return |
|
142 | return | |
|
143 | vfs = ui._bbvfs | |||
|
144 | if not vfs: | |||
|
145 | return | |||
|
146 | ||||
139 | repo = getattr(ui, '_bbrepo', None) |
|
147 | repo = getattr(ui, '_bbrepo', None) | |
140 | if not lastui or repo: |
|
148 | if not lastui or repo: | |
141 | lastui = ui |
|
149 | lastui = ui |
@@ -293,6 +293,13 b' when using chg, blackbox.log should get ' | |||||
293 |
|
293 | |||
294 | $ cd .. |
|
294 | $ cd .. | |
295 |
|
295 | |||
|
296 | With chg, blackbox should not create the log file if the repo is gone | |||
|
297 | ||||
|
298 | $ hg init repo1 | |||
|
299 | $ hg --config extensions.a=! -R repo1 log | |||
|
300 | $ rm -rf $TESTTMP/repo1 | |||
|
301 | $ hg --config extensions.a=! init repo1 | |||
|
302 | ||||
296 | #endif |
|
303 | #endif | |
297 |
|
304 | |||
298 | blackbox should work if repo.ui.log is not called (issue5518) |
|
305 | blackbox should work if repo.ui.log is not called (issue5518) |
General Comments 0
You need to be logged in to leave comments.
Login now