]> scripts.mit.edu Git - wizard.git/commit
Refactor reporting infrastructure.
authorEdward Z. Yang <ezyang@mit.edu>
Sat, 6 Feb 2010 06:48:31 +0000 (01:48 -0500)
committerEdward Z. Yang <ezyang@mit.edu>
Sat, 6 Feb 2010 06:48:31 +0000 (01:48 -0500)
commitd8b7d9cbe7facd47d5b3b87b949f3b70c4d9f32c
tree42918dc5092281150bdf84f87ed3713e40c4609a
parent2bf4f3eb47a1d6d2c878be0237a690a539e97715
Refactor reporting infrastructure.

The old set of report classes and functions inside
wizard.command were ripped out, reimplemented, and
placed inside wizard.report.  The new API is:

    report.make(logdir, "name1", "name2" ...)
    report.make_fresh(logdir, "name1" ...)

Where make will append to previous files, and make_fresh
will clear out previous files.  Semantics for --redo
are made correct, and seen is superceded for mass-upgrade.

One very visible change is mass-upgrade will output
percentages that might actually sum to 100%!

Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
wizard/command/__init__.py
wizard/command/mass_migrate.py
wizard/command/mass_upgrade.py
wizard/report.py [new file with mode: 0644]