diff hgext/progress.py @ 10441:dc0d1ca2d378

progress: only reset state if finishing progress for the current topic This prevents some visual glitches when doing a clone --pull locally.
author Augie Fackler <durin42@gmail.com>
date Sat, 13 Feb 2010 09:49:06 -0600
parents 509f4ed56509
children b4fd900569b1
line wrap: on
line diff
--- 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)