revlog: report indexfile rather than datafile for integrity check
authorMatt Mackall <mpm@selenic.com>
Wed, 27 May 2009 14:44:54 -0500
changeset 8643 648af8a6aa41
parent 8642 2ed353a413b1
child 8644 c2ef478b2efa
revlog: report indexfile rather than datafile for integrity check
mercurial/revlog.py
--- a/mercurial/revlog.py	Wed May 27 14:44:52 2009 -0500
+++ b/mercurial/revlog.py	Wed May 27 14:44:54 2009 -0500
@@ -1009,7 +1009,7 @@
         p1, p2 = self.parents(node)
         if node != hash(text, p1, p2):
             raise RevlogError(_("integrity check failed on %s:%d")
-                              % (self.datafile, rev))
+                              % (self.indexfile, rev))
 
         self._cache = (node, rev, text)
         return text