hgext/progress.py
changeset 13154 e11c14f14491
parent 13148 ab5fcc473fd1
child 13236 3f299f5d9a29
--- a/hgext/progress.py	Tue Dec 14 21:58:13 2010 -0500
+++ b/hgext/progress.py	Thu Dec 16 07:45:22 2010 -0600
@@ -183,6 +183,8 @@
         return min(int(self.ui.config('progress', 'width', default=tw)), tw)
 
     def estimate(self, topic, pos, total, now):
+        if total is None:
+            return ''
         initialpos = self.startvals[topic]
         target = total - initialpos
         delta = pos - initialpos