equal
deleted
inserted
replaced
1272 if self._cache: |
1272 if self._cache: |
1273 if self._cache[0] == node: |
1273 if self._cache[0] == node: |
1274 # _cache only stores rawtext |
1274 # _cache only stores rawtext |
1275 if raw: |
1275 if raw: |
1276 return self._cache[2] |
1276 return self._cache[2] |
|
1277 # duplicated, but good for perf |
|
1278 if rev is None: |
|
1279 rev = self.rev(node) |
|
1280 # no extra flags set, no flag processor runs, text = rawtext |
|
1281 if self.flags(rev) == REVIDX_DEFAULT_FLAGS: |
|
1282 return self._cache[2] |
|
1283 |
1277 cachedrev = self._cache[1] |
1284 cachedrev = self._cache[1] |
1278 |
1285 |
1279 # look up what we need to read |
1286 # look up what we need to read |
1280 rawtext = None |
1287 rawtext = None |
1281 if rev is None: |
1288 if rev is None: |