##// END OF EJS Templates
revlog: deal with chunk ranges over 2G on Windows (issue4215)...
Matt Mackall -
r20957:469d949a stable
parent child Browse files
Show More
@@ -909,8 +909,13 b' class revlog(object):'
909 ladd = l.append
909 ladd = l.append
910
910
911 # preload the cache
911 # preload the cache
912 self._chunkraw(revs[0], revs[-1])
912 try:
913 offset, data = self._chunkcache
913 self._chunkraw(revs[0], revs[-1])
914 offset, data = self._chunkcache
915 except OverflowError:
916 # issue4215 - we can't cache a run of chunks greater than
917 # 2G on Windows
918 return [self._chunk(rev) for rev in revs]
914
919
915 for rev in revs:
920 for rev in revs:
916 chunkstart = start(rev)
921 chunkstart = start(rev)
General Comments 0
You need to be logged in to leave comments. Login now