hgext/progress.py
changeset 10891 83af68e38be3
parent 10815 32b213b9b22c
child 11458 ec21d91c79b3
--- a/hgext/progress.py	Sun Apr 11 14:25:02 2010 -0500
+++ b/hgext/progress.py	Thu Apr 08 15:04:00 2010 -0500
@@ -114,7 +114,7 @@
             if tail:
                 used += len(tail) + 1
             progwidth = termwidth - used - 3
-            if total:
+            if total and pos <= total:
                 amt = pos * progwidth // total
                 bar = '=' * (amt - 1)
                 if amt > 0: