hgext/progress.py
changeset 16676 654b9e1966f7
parent 15772 83a140752239
child 16743 38caf405d010
equal deleted inserted replaced
16675:f29f187ee73d 16676:654b9e1966f7
   235                 self.complete()
   235                 self.complete()
   236                 self.resetstate()
   236                 self.resetstate()
   237             # truncate the list of topics assuming all topics within
   237             # truncate the list of topics assuming all topics within
   238             # this one are also closed
   238             # this one are also closed
   239             if topic in self.topics:
   239             if topic in self.topics:
   240               self.topics = self.topics[:self.topics.index(topic)]
   240                 self.topics = self.topics[:self.topics.index(topic)]
   241         else:
   241         else:
   242             if topic not in self.topics:
   242             if topic not in self.topics:
   243                 self.starttimes[topic] = now
   243                 self.starttimes[topic] = now
   244                 self.startvals[topic] = pos
   244                 self.startvals[topic] = pos
   245                 self.topics.append(topic)
   245                 self.topics.append(topic)