hgext/progress.py
changeset 10441 dc0d1ca2d378
parent 10439 509f4ed56509
child 10450 b4fd900569b1
equal deleted inserted replaced
10440:b39b32c33269 10441:dc0d1ca2d378
   153 
   153 
   154     def progress(self, orig, topic, pos, item='', unit='', total=None):
   154     def progress(self, orig, topic, pos, item='', unit='', total=None):
   155         if pos is None:
   155         if pos is None:
   156             if self.topics and self.topics[-1] == topic and self.printed:
   156             if self.topics and self.topics[-1] == topic and self.printed:
   157                 self.complete()
   157                 self.complete()
   158             self.resetstate()
   158                 self.resetstate()
   159         else:
   159         else:
   160             if topic not in self.topics:
   160             if topic not in self.topics:
   161                 self.topics.append(topic)
   161                 self.topics.append(topic)
   162             now = time.time()
   162             now = time.time()
   163             if now - self.lastprint > 0.1 and topic == self.topics[-1]:
   163             if now - self.lastprint > 0.1 and topic == self.topics[-1]: