changeset 8643:648af8a6aa41

revlog: report indexfile rather than datafile for integrity check
author Matt Mackall <mpm@selenic.com>
date Wed, 27 May 2009 14:44:54 -0500
parents 2ed353a413b1
children c2ef478b2efa
files mercurial/revlog.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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