Mercurial > hg-stable
diff mercurial/revlog.py @ 5450:c728424d44c6
revlog: fix caching of buffer objects
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Thu, 11 Oct 2007 00:46:53 -0500 |
parents | e038738714fd |
children | 0a43875677b1 |
line wrap: on
line diff
--- a/mercurial/revlog.py Thu Oct 11 00:46:52 2007 -0500 +++ b/mercurial/revlog.py Thu Oct 11 00:46:53 2007 -0500 @@ -903,7 +903,7 @@ if node == nullid: return "" if self._cache and self._cache[0] == node: - return self._cache[2] + return str(self._cache[2]) # look up what we need to read text = None @@ -924,7 +924,7 @@ # do we have useful data cached? if self._cache and self._cache[1] >= base and self._cache[1] < rev: base = self._cache[1] - text = self._cache[2] + text = str(self._cache[2]) self._loadindex(base, rev + 1) else: self._loadindex(base, rev + 1)