diff mercurial/verify.py @ 28113:d2e0d57824c2

verify: include "manifest" prefix in a few more places We include the "manifest" prefix on most other errors, so it seems consistent to add them to the remaining messages too. Also, having the "manifest" prefix will be more consistent with having the directory prefix there when we add support for treemanifests. With the "manifest" at the beginning, let's remove the now-redundant "manifest" in the message itself.
author Martin von Zweigbergk <martinvonz@google.com>
date Tue, 02 Feb 2016 10:42:28 -0800
parents 334a3aa677fb
children 2a03a365f645
line wrap: on
line diff
--- a/mercurial/verify.py	Tue Feb 02 09:46:14 2016 -0800
+++ b/mercurial/verify.py	Tue Feb 02 10:42:28 2016 -0800
@@ -229,14 +229,14 @@
                             filenodes.setdefault(
                                 _normpath(f), {}).setdefault(fn, lr)
             except Exception as inst:
-                self.exc(lr, _("reading manifest delta %s") % short(n), inst)
+                self.exc(lr, _("reading delta %s") % short(n), inst)
         ui.progress(_('checking'), None)
 
         if self.havemf:
             for c, m in sorted([(c, m) for m in mflinkrevs
                         for c in mflinkrevs[m]]):
-                self.err(c, _("changeset refers to unknown manifest %s") %
-                         short(m))
+                self.err(c, _("changeset refers to unknown revision %s") %
+                         short(m), "manifest")
 
         return filenodes