mercurial/changegroup.py
changeset 25573 3e89e67f17e8
parent 25517 513c31d8652f
child 25574 88a17ccf0196
--- a/mercurial/changegroup.py	Sun Jun 14 21:51:57 2015 -0400
+++ b/mercurial/changegroup.py	Fri Jun 12 10:54:10 2015 -0700
@@ -743,12 +743,11 @@
         class prog(object):
             step = _('changesets')
             count = 1
-            ui = repo.ui
             total = expectedtotal
-            def __call__(repo):
-                repo.ui.progress(repo.step, repo.count, unit=_('chunks'),
-                                 total=repo.total)
-                repo.count += 1
+            def __call__(self):
+                repo.ui.progress(self.step, self.count, unit=_('chunks'),
+                                 total=self.total)
+                self.count += 1
         pr = prog()
         source.callback = pr