mercurial/verify.py
changeset 8292 29540554def8
parent 8291 f5c1a9094e41
child 8394 850b5a7c210d
--- a/mercurial/verify.py	Fri Apr 24 10:44:39 2009 +0200
+++ b/mercurial/verify.py	Mon May 04 19:51:08 2009 +0200
@@ -52,9 +52,9 @@
         ui.warn(msg + "\n")
         warnings[0] += 1
 
-    def checklog(obj, name):
+    def checklog(obj, name, linkrev):
         if not len(obj) and (havecl or havemf):
-            err(0, _("empty or missing %s") % name)
+            err(linkrev, _("empty or missing %s") % name)
             return
 
         d = obj.checksize()
@@ -107,7 +107,7 @@
 
     ui.status(_("checking changesets\n"))
     seen = {}
-    checklog(cl, "changelog")
+    checklog(cl, "changelog", 0)
     for i in repo:
         n = cl.node(i)
         checkentry(cl, i, n, seen, [i], "changelog")
@@ -122,7 +122,7 @@
 
     ui.status(_("checking manifests\n"))
     seen = {}
-    checklog(mf, "manifest")
+    checklog(mf, "manifest", 0)
     for i in mf:
         n = mf.node(i)
         lr = checkentry(mf, i, n, seen, mflinkrevs.get(n, []), "manifest")
@@ -196,7 +196,7 @@
             except KeyError:
                 err(lr, _("missing revlog!"), ff)
 
-        checklog(fl, f)
+        checklog(fl, f, lr)
         seen = {}
         for i in fl:
             revisions += 1