Show More
@@ -1267,6 +1267,8 class revlog(object): | |||
|
1267 | 1267 | return "" |
|
1268 | 1268 | if self._cache: |
|
1269 | 1269 | if self._cache[0] == node: |
|
1270 | # _cache only stores rawtext | |
|
1271 | if raw: | |
|
1270 | 1272 | return self._cache[2] |
|
1271 | 1273 | cachedrev = self._cache[1] |
|
1272 | 1274 | |
@@ -1294,7 +1296,7 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): |
General Comments 0
You need to be logged in to leave comments.
Login now