[PATCH] progress: only reset state if finishing progress for the current topic

Augie Fackler durin42 at gmail.com
Sat Feb 13 09:49:18 CST 2010


# HG changeset patch
# User Augie Fackler <durin42 at gmail.com>
# Date 1266076146 21600
# Node ID dc0d1ca2d3782479cd1fdae7b313445f158d92d2
# Parent  b39b32c33269a92d0f4a50508eadd8b91b34f907
progress: only reset state if finishing progress for the current topic

This prevents some visual glitches when doing a clone --pull locally.

diff --git a/hgext/progress.py b/hgext/progress.py
--- a/hgext/progress.py
+++ b/hgext/progress.py
@@ -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)


More information about the Mercurial-devel mailing list