changeset 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 b39b32c33269
children 662b0f9eb148
files hgext/progress.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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)