hgext/progress.py
changeset 19619 4694ccd5d994
parent 19404 b4744c3b991e
child 21859 be4270d27a7e
--- a/hgext/progress.py	Thu Aug 15 21:36:53 2013 -0400
+++ b/hgext/progress.py	Fri Aug 23 13:28:18 2013 -0400
@@ -239,6 +239,13 @@
             # this one are also closed
             if topic in self.topics:
                 self.topics = self.topics[:self.topics.index(topic)]
+                # reset the last topic to the one we just unwound to,
+                # so that higher-level topics will be stickier than
+                # lower-level topics
+                if self.topics:
+                    self.lasttopic = self.topics[-1]
+                else:
+                    self.lasttopic = None
         else:
             if topic not in self.topics:
                 self.starttimes[topic] = now