diff mercurial/revlog.py @ 13276:ba6a63339f7c

revlog: pass rev to _checkhash
author Matt Mackall <mpm@selenic.com>
date Tue, 18 Jan 2011 15:55:48 -0600
parents 68da048b4c88
children 77351c88dd10
line wrap: on
line diff
--- a/mercurial/revlog.py	Tue Jan 18 15:55:46 2011 -0600
+++ b/mercurial/revlog.py	Tue Jan 18 15:55:48 2011 -0600
@@ -871,12 +871,12 @@
         bins = [self._chunk(r) for r in chain]
         text = mdiff.patches(text, bins)
 
-        text = self._checkhash(text, node)
+        text = self._checkhash(text, node, rev)
 
         self._cache = (node, rev, text)
         return text
 
-    def _checkhash(self, text, node):
+    def _checkhash(self, text, node, rev):
         p1, p2 = self.parents(node)
         if (node != hash(text, p1, p2) and
             not (self.flags(rev) & REVIDX_PUNCHED_FLAG)):