##// END OF EJS Templates
verify/progress: using gerund to indicate action and adding units
timeless -
r12745:5a1912b5 default
parent child Browse files
Show More
@@ -124,7 +124,7 b' def _verify(repo):'
124 checklog(cl, "changelog", 0)
124 checklog(cl, "changelog", 0)
125 total = len(repo)
125 total = len(repo)
126 for i in repo:
126 for i in repo:
127 ui.progress(_('changesets'), i, total=total)
127 ui.progress(_('checking'), i, total=total, unit=_('changesets'))
128 n = cl.node(i)
128 n = cl.node(i)
129 checkentry(cl, i, n, seen, [i], "changelog")
129 checkentry(cl, i, n, seen, [i], "changelog")
130
130
@@ -135,14 +135,14 b' def _verify(repo):'
135 filelinkrevs.setdefault(f, []).append(i)
135 filelinkrevs.setdefault(f, []).append(i)
136 except Exception, inst:
136 except Exception, inst:
137 exc(i, _("unpacking changeset %s") % short(n), inst)
137 exc(i, _("unpacking changeset %s") % short(n), inst)
138 ui.progress(_('changesets'), None)
138 ui.progress(_('checking'), None)
139
139
140 ui.status(_("checking manifests\n"))
140 ui.status(_("checking manifests\n"))
141 seen = {}
141 seen = {}
142 checklog(mf, "manifest", 0)
142 checklog(mf, "manifest", 0)
143 total = len(mf)
143 total = len(mf)
144 for i in mf:
144 for i in mf:
145 ui.progress(_('manifests'), i, total=total)
145 ui.progress(_('checking'), i, total=total, unit=_('manifests'))
146 n = mf.node(i)
146 n = mf.node(i)
147 lr = checkentry(mf, i, n, seen, mflinkrevs.get(n, []), "manifest")
147 lr = checkentry(mf, i, n, seen, mflinkrevs.get(n, []), "manifest")
148 if n in mflinkrevs:
148 if n in mflinkrevs:
@@ -158,7 +158,7 b' def _verify(repo):'
158 filenodes.setdefault(f, {}).setdefault(fn, lr)
158 filenodes.setdefault(f, {}).setdefault(fn, lr)
159 except Exception, inst:
159 except Exception, inst:
160 exc(lr, _("reading manifest delta %s") % short(n), inst)
160 exc(lr, _("reading manifest delta %s") % short(n), inst)
161 ui.progress(_('manifests'), None)
161 ui.progress(_('checking'), None)
162
162
163 ui.status(_("crosschecking files in changesets and manifests\n"))
163 ui.status(_("crosschecking files in changesets and manifests\n"))
164
164
General Comments 0
You need to be logged in to leave comments. Login now