verify/progress: using gerund to indicate action and adding units
authortimeless <timeless@gmail.com>
Mon, 02 Aug 2010 07:15:47 +0300
changeset 12745 5a1912b5aa42
parent 12744 0793d763e413
child 12746 8b438cb84c57
verify/progress: using gerund to indicate action and adding units
mercurial/verify.py
--- a/mercurial/verify.py	Tue Jul 20 20:53:48 2010 +0200
+++ b/mercurial/verify.py	Mon Aug 02 07:15:47 2010 +0300
@@ -124,7 +124,7 @@
     checklog(cl, "changelog", 0)
     total = len(repo)
     for i in repo:
-        ui.progress(_('changesets'), i, total=total)
+        ui.progress(_('checking'), i, total=total, unit=_('changesets'))
         n = cl.node(i)
         checkentry(cl, i, n, seen, [i], "changelog")
 
@@ -135,14 +135,14 @@
                 filelinkrevs.setdefault(f, []).append(i)
         except Exception, inst:
             exc(i, _("unpacking changeset %s") % short(n), inst)
-    ui.progress(_('changesets'), None)
+    ui.progress(_('checking'), None)
 
     ui.status(_("checking manifests\n"))
     seen = {}
     checklog(mf, "manifest", 0)
     total = len(mf)
     for i in mf:
-        ui.progress(_('manifests'), i, total=total)
+        ui.progress(_('checking'), i, total=total, unit=_('manifests'))
         n = mf.node(i)
         lr = checkentry(mf, i, n, seen, mflinkrevs.get(n, []), "manifest")
         if n in mflinkrevs:
@@ -158,7 +158,7 @@
                     filenodes.setdefault(f, {}).setdefault(fn, lr)
         except Exception, inst:
             exc(lr, _("reading manifest delta %s") % short(n), inst)
-    ui.progress(_('manifests'), None)
+    ui.progress(_('checking'), None)
 
     ui.status(_("crosschecking files in changesets and manifests\n"))