Mercurial > public > mercurial-scm > hg
comparison mercurial/revlog.py @ 11759:05deba16c5d5
Merge with stable
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Fri, 06 Aug 2010 12:59:13 -0500 |
parents | 46ac30b17978 6ccd130eab0e |
children | b69899dbad40 |
comparison
equal
deleted
inserted
replaced
11751:b8b4a2417fbd | 11759:05deba16c5d5 |
---|---|
1039 # do we have useful data cached? | 1039 # do we have useful data cached? |
1040 if self._cache and self._cache[1] >= base and self._cache[1] < rev: | 1040 if self._cache and self._cache[1] >= base and self._cache[1] < rev: |
1041 base = self._cache[1] | 1041 base = self._cache[1] |
1042 text = self._cache[2] | 1042 text = self._cache[2] |
1043 | 1043 |
1044 # drop cache to save memory | |
1045 self._cache = None | |
1046 | |
1044 self._loadindex(base, rev + 1) | 1047 self._loadindex(base, rev + 1) |
1045 self._chunkraw(base, rev) | 1048 self._chunkraw(base, rev) |
1046 if text is None: | 1049 if text is None: |
1047 text = self._chunk(base) | 1050 text = self._chunk(base) |
1048 | 1051 |