--- a/mercurial/revlog.py Fri Dec 20 14:56:05 2013 +0100
+++ b/mercurial/revlog.py Thu Apr 10 12:41:39 2014 -0400
@@ -913,8 +913,13 @@
ladd = l.append
# preload the cache
- self._chunkraw(revs[0], revs[-1])
- offset, data = self._chunkcache
+ try:
+ self._chunkraw(revs[0], revs[-1])
+ offset, data = self._chunkcache
+ except OverflowError:
+ # issue4215 - we can't cache a run of chunks greater than
+ # 2G on Windows
+ return [self._chunk(rev) for rev in revs]
for rev in revs:
chunkstart = start(rev)