changeset 3051:7ffaf5aba4d8

[churn] Fix progress bar not incrementing when merge cset is encountered
author Josef "Jeff" Sipek <jeffpc@josefsipek.net>
date Sun, 03 Sep 2006 18:41:16 -0400
parents dd1a142988d3
children 51083c31db04
files hgext/churn.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/churn.py	Sun Sep 03 16:30:07 2006 -0400
+++ b/hgext/churn.py	Sun Sep 03 18:41:16 2006 -0400
@@ -82,6 +82,8 @@
     cur_rev = 0
 
     for rev in revs:
+        cur_rev += 1 # next revision
+
         node2    = cl.node(rev)
         node1    = cl.parents(node2)[0]
 
@@ -102,7 +104,6 @@
 
         ui.note("rev %d: %d lines by %s\n" % (rev, lines, who))
 
-        cur_rev += 1
         if progress:
             if int(100.0*(cur_rev - 1)/nr_revs) < int(100.0*cur_rev/nr_revs):
                 ui.write("%d%%.." % (int(100.0*cur_rev/nr_revs),))