Show More
@@ -251,7 +251,10 b' class progbar(object):' | |||||
251 | self.lastprint = now |
|
251 | self.lastprint = now | |
252 | self.show(now, topic, *self.topicstates[topic]) |
|
252 | self.show(now, topic, *self.topicstates[topic]) | |
253 |
|
253 | |||
|
254 | _singleton = None | |||
|
255 | ||||
254 | def uisetup(ui): |
|
256 | def uisetup(ui): | |
|
257 | global _singleton | |||
255 | class progressui(ui.__class__): |
|
258 | class progressui(ui.__class__): | |
256 | _progbar = None |
|
259 | _progbar = None | |
257 |
|
260 | |||
@@ -278,7 +281,9 b' def uisetup(ui):' | |||||
278 | # we instantiate one globally shared progress bar to avoid |
|
281 | # we instantiate one globally shared progress bar to avoid | |
279 | # competing progress bars when multiple UI objects get created |
|
282 | # competing progress bars when multiple UI objects get created | |
280 | if not progressui._progbar: |
|
283 | if not progressui._progbar: | |
281 | progressui._progbar = progbar(ui) |
|
284 | if _singleton is None: | |
|
285 | _singleton = progbar(ui) | |||
|
286 | progressui._progbar = _singleton | |||
282 |
|
287 | |||
283 | def reposetup(ui, repo): |
|
288 | def reposetup(ui, repo): | |
284 | uisetup(repo.ui) |
|
289 | uisetup(repo.ui) |
General Comments 0
You need to be logged in to leave comments.
Login now