progress: only reset state if finishing progress for the current topic
authorAugie Fackler <durin42@gmail.com>
Sat, 13 Feb 2010 09:49:06 -0600
changeset 10441 dc0d1ca2d378
parent 10440 b39b32c33269
child 10442 662b0f9eb148
progress: only reset state if finishing progress for the current topic This prevents some visual glitches when doing a clone --pull locally.
hgext/progress.py
--- a/hgext/progress.py	Sat Feb 13 15:34:44 2010 +0100
+++ b/hgext/progress.py	Sat Feb 13 09:49:06 2010 -0600
@@ -155,7 +155,7 @@
         if pos is None:
             if self.topics and self.topics[-1] == topic and self.printed:
                 self.complete()
-            self.resetstate()
+                self.resetstate()
         else:
             if topic not in self.topics:
                 self.topics.append(topic)