mercurial/bundlerepo.py
changeset 30745 c1b7b2285522
parent 30743 2df983125d37
child 30944 48dea083f66d
--- a/mercurial/bundlerepo.py	Thu Jan 05 17:16:07 2017 +0000
+++ b/mercurial/bundlerepo.py	Tue Jan 10 16:15:21 2017 +0000
@@ -148,7 +148,10 @@
             delta = self._chunk(chain.pop())
             text = mdiff.patches(text, [delta])
 
-        self.checkhash(text, node, rev=rev)
+        text, validatehash = self._processflags(text, self.flags(rev),
+                                                'read', raw=raw)
+        if validatehash:
+            self.checkhash(text, node, rev=rev)
         self._cache = (node, rev, text)
         return text