Differences From:
File
tools/lib/import_statistics.tcl
part of check-in
[b504674c5f]
- Fixed problems with the untested statistics module.
Moved cset <-> uuid map out of cvs to control layer, separate package.
Currently not really useful, will be needed when handling cvs branches.
Moved some user feedback around, and the import control too.
by
aku on
2007-09-15 03:18:31.
[view]
To:
File
tools/lib/import_statistics.tcl
part of check-in
[330f2da791]
- Moved the counting of imported changesets to the beginning for a more
accurate percent calculation and proper ending at 100%.
by
aku on
2007-09-20 07:08:40.
[view]
@@ -49,8 +49,10 @@
variable run_format
variable total_running
variable total_csets
+ incr total_running
+
write 0 stats "ChangeSet [format $max_format $cset] @ [format $run_format $total_running]/$total_csets ([F6 [expr {$total_running*100.0/$total_csets}]]%)"
return
}
@@ -58,9 +60,8 @@
variable total_csets
variable total_seconds
variable total_running
- incr total_running
set total_seconds [expr {$total_seconds + $seconds}]
set avg [Avg]
set end [expr {$total_csets * $avg}]