Show More
@@ -77,9 +77,13 b' def wrapui(ui):' | |||
|
77 | 77 | class blackboxui(ui.__class__): |
|
78 | 78 | @property |
|
79 | 79 | def _bbvfs(self): |
|
80 | vfs = None | |
|
80 | 81 | repo = getattr(self, '_bbrepo', None) |
|
81 | 82 | if repo: |
|
82 |
|
|
|
83 | vfs = repo.vfs | |
|
84 | if not vfs.isdir('.'): | |
|
85 | vfs = None | |
|
86 | return vfs | |
|
83 | 87 | |
|
84 | 88 | @util.propertycache |
|
85 | 89 | def track(self): |
@@ -136,6 +140,10 b' def wrapui(ui):' | |||
|
136 | 140 | |
|
137 | 141 | if not ui: |
|
138 | 142 | return |
|
143 | vfs = ui._bbvfs | |
|
144 | if not vfs: | |
|
145 | return | |
|
146 | ||
|
139 | 147 | repo = getattr(ui, '_bbrepo', None) |
|
140 | 148 | if not lastui or repo: |
|
141 | 149 | lastui = ui |
@@ -293,6 +293,13 b' when using chg, blackbox.log should get ' | |||
|
293 | 293 | |
|
294 | 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 | 303 | #endif |
|
297 | 304 | |
|
298 | 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