##// END OF EJS Templates
[churn] Fix progress bar not incrementing when merge cset is encountered
Josef "Jeff" Sipek -
r3051:7ffaf5ab default
parent child Browse files
Show More
@@ -82,6 +82,8 b' def gather_stats(ui, repo, amap, revs=No'
82 cur_rev = 0
82 cur_rev = 0
83
83
84 for rev in revs:
84 for rev in revs:
85 cur_rev += 1 # next revision
86
85 node2 = cl.node(rev)
87 node2 = cl.node(rev)
86 node1 = cl.parents(node2)[0]
88 node1 = cl.parents(node2)[0]
87
89
@@ -102,7 +104,6 b' def gather_stats(ui, repo, amap, revs=No'
102
104
103 ui.note("rev %d: %d lines by %s\n" % (rev, lines, who))
105 ui.note("rev %d: %d lines by %s\n" % (rev, lines, who))
104
106
105 cur_rev += 1
106 if progress:
107 if progress:
107 if int(100.0*(cur_rev - 1)/nr_revs) < int(100.0*cur_rev/nr_revs):
108 if int(100.0*(cur_rev - 1)/nr_revs) < int(100.0*cur_rev/nr_revs):
108 ui.write("%d%%.." % (int(100.0*cur_rev/nr_revs),))
109 ui.write("%d%%.." % (int(100.0*cur_rev/nr_revs),))
General Comments 0
You need to be logged in to leave comments. Login now