##// END OF EJS Templates
revlog: fix _cache usage in revision()...
Jun Wu -
r31751:2133437d default
parent child Browse files
Show More
@@ -1267,7 +1267,9 b' class revlog(object):'
1267 1267 return ""
1268 1268 if self._cache:
1269 1269 if self._cache[0] == node:
1270 return self._cache[2]
1270 # _cache only stores rawtext
1271 if raw:
1272 return self._cache[2]
1271 1273 cachedrev = self._cache[1]
1272 1274
1273 1275 # look up what we need to read
@@ -1294,7 +1296,7 b' class revlog(object):'
1294 1296 if validatehash:
1295 1297 self.checkhash(text, node, rev=rev)
1296 1298
1297 self._cache = (node, rev, text)
1299 self._cache = (node, rev, rawtext)
1298 1300 return text
1299 1301
1300 1302 def hash(self, text, p1, p2):
@@ -1,1 +1,1 b''
1 abort: rev 5: wrong text
1 abort: crashed: integrity check failed on _testrevlog.i:11
General Comments 0
You need to be logged in to leave comments. Login now