Output progress indication when copying files

Output (2 of 500) when logging message copying. This required moving of
self.ui.copyingmessage into a different function where we actually have
the information about the progress handy.

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
This commit is contained in:
Sebastian Spaeth
2011-09-29 16:51:48 +02:00
parent 642880b404
commit eb0b546927
5 changed files with 13 additions and 17 deletions

View File

@ -288,12 +288,11 @@ class UIBase:
s.getnicename(dr),
df.getname()))
def copyingmessage(self, uid, src, destfolder):
def copyingmessage(self, uid, num, num_to_copy, src, destfolder):
"""Output a log line stating which message we copy"""
if self.verbose >= 0:
self._msg("Copy message %d %s[%s] -> %s[%s]" % \
(uid, self.getnicename(src), src,
self.getnicename(destfolder), destfolder))
if self.verbose < 0: return
self._msg("Copy message %s (%d of %d) %s:%s -> %s" % (uid, num,
num_to_copy, src.repository, src, destfolder.repository))
def deletingmessage(s, uid, destlist):
if s.verbose >= 0: