Show More
@@ -1288,22 +1288,23 b' class revlog(object):' | |||||
1288 |
|
1288 | |||
1289 | # look up what we need to read |
|
1289 | # look up what we need to read | |
1290 | rawtext = None |
|
1290 | rawtext = None | |
1291 |
if r |
|
1291 | if rawtext is None: | |
1292 |
rev |
|
1292 | if rev is None: | |
|
1293 | rev = self.rev(node) | |||
1293 |
|
1294 | |||
1294 | chain, stopped = self._deltachain(rev, stoprev=cachedrev) |
|
1295 | chain, stopped = self._deltachain(rev, stoprev=cachedrev) | |
1295 | if stopped: |
|
1296 | if stopped: | |
1296 | rawtext = self._cache[2] |
|
1297 | rawtext = self._cache[2] | |
1297 |
|
1298 | |||
1298 | # drop cache to save memory |
|
1299 | # drop cache to save memory | |
1299 | self._cache = None |
|
1300 | self._cache = None | |
1300 |
|
1301 | |||
1301 | bins = self._chunks(chain, df=_df) |
|
1302 | bins = self._chunks(chain, df=_df) | |
1302 | if rawtext is None: |
|
1303 | if rawtext is None: | |
1303 | rawtext = bytes(bins[0]) |
|
1304 | rawtext = bytes(bins[0]) | |
1304 | bins = bins[1:] |
|
1305 | bins = bins[1:] | |
1305 |
|
1306 | |||
1306 | rawtext = mdiff.patches(rawtext, bins) |
|
1307 | rawtext = mdiff.patches(rawtext, bins) | |
1307 |
|
1308 | |||
1308 | if flags is None: |
|
1309 | if flags is None: | |
1309 | flags = self.flags(rev) |
|
1310 | flags = self.flags(rev) |
General Comments 0
You need to be logged in to leave comments.
Login now