--- 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: