##// END OF EJS Templates
revlog: pass rev to _checkhash
Matt Mackall -
r13276:ba6a6333 default
parent child Browse files
Show More
@@ -871,12 +871,12 class revlog(object):
871 bins = [self._chunk(r) for r in chain]
871 bins = [self._chunk(r) for r in chain]
872 text = mdiff.patches(text, bins)
872 text = mdiff.patches(text, bins)
873
873
874 text = self._checkhash(text, node)
874 text = self._checkhash(text, node, rev)
875
875
876 self._cache = (node, rev, text)
876 self._cache = (node, rev, text)
877 return text
877 return text
878
878
879 def _checkhash(self, text, node):
879 def _checkhash(self, text, node, rev):
880 p1, p2 = self.parents(node)
880 p1, p2 = self.parents(node)
881 if (node != hash(text, p1, p2) and
881 if (node != hash(text, p1, p2) and
882 not (self.flags(rev) & REVIDX_PUNCHED_FLAG)):
882 not (self.flags(rev) & REVIDX_PUNCHED_FLAG)):
General Comments 0
You need to be logged in to leave comments. Login now