Mercurial > public > mercurial-scm > hg
comparison mercurial/revlog.py @ 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 | 33686ef26f04 |
children | ef393d6ec030 |
comparison
equal
deleted
inserted
replaced
8642:2ed353a413b1 | 8643:648af8a6aa41 |
---|---|
1007 bins = [self.chunk(r, df) for r in xrange(base + 1, rev + 1)] | 1007 bins = [self.chunk(r, df) for r in xrange(base + 1, rev + 1)] |
1008 text = mdiff.patches(text, bins) | 1008 text = mdiff.patches(text, bins) |
1009 p1, p2 = self.parents(node) | 1009 p1, p2 = self.parents(node) |
1010 if node != hash(text, p1, p2): | 1010 if node != hash(text, p1, p2): |
1011 raise RevlogError(_("integrity check failed on %s:%d") | 1011 raise RevlogError(_("integrity check failed on %s:%d") |
1012 % (self.datafile, rev)) | 1012 % (self.indexfile, rev)) |
1013 | 1013 |
1014 self._cache = (node, rev, text) | 1014 self._cache = (node, rev, text) |
1015 return text | 1015 return text |
1016 | 1016 |
1017 def checkinlinesize(self, tr, fp=None): | 1017 def checkinlinesize(self, tr, fp=None): |