--- a/hgext/progress.py Sun Jun 07 17:19:20 2015 -0700
+++ b/hgext/progress.py Sun Jun 07 17:26:34 2015 -0700
@@ -36,11 +36,9 @@
"""
from mercurial import progress
-
-_singleton = None
+from mercurial import ui as uimod
def uisetup(ui):
- global _singleton
class progressui(ui.__class__):
_progbar = None
@@ -73,9 +71,7 @@
# we instantiate one globally-shared progress bar to avoid
# competing progress bars when multiple UI objects get created
if not progressui._progbar:
- if _singleton is None:
- _singleton = progress.progbar(ui)
- progressui._progbar = _singleton
+ progressui._progbar = uimod.getprogbar(ui)
def reposetup(ui, repo):
uisetup(repo.ui)