notmuch new: Print upgrade progress report as a percentage.
authorCarl Worth <cworth@cworth.org>
Sun, 10 Jan 2010 01:38:23 +0000 (17:38 -0800)
committerCarl Worth <cworth@cworth.org>
Sun, 10 Jan 2010 01:38:23 +0000 (17:38 -0800)
commitc340c1bd1140c0a1b7e0f24ef3ebac806f5fc3e6
treef9b2fa23adbe5b62812a87327704d141fe7247fc
parentccf2e0cc4211c276da1db43cdca7ee11018c391d
notmuch new: Print upgrade progress report as a percentage.

Previously we were printing a number of messages upgraded so far. The
original motivation for this was to accurately reflect the fact that
there are two passes, (so each message is processed twice and it's not
accurate to represent with a single count). But as it turns out, the
second pass takes zero time (relatively speaking) so we're still not
accounting for it.

If nothing else, the percentage-based reporting makes for a cleaner
API for the progress_notify function.
lib/database.cc
lib/notmuch.h
notmuch-new.c