##// END OF EJS Templates
revlog: avoid large yields in group()...
Matt Mackall -
r5448:e0387387 default
parent child Browse files
Show More
@@ -1096,7 +1096,14 b' class revlog(object):'
1096 d = self.revdiff(a, b)
1096 d = self.revdiff(a, b)
1097 yield changegroup.chunkheader(len(meta) + len(d))
1097 yield changegroup.chunkheader(len(meta) + len(d))
1098 yield meta
1098 yield meta
1099 yield d
1099 if len(d) > 2**20:
1100 pos = 0
1101 while pos < len(d):
1102 pos2 = pos + 2 ** 18
1103 yield d[pos:pos2]
1104 pos = pos2
1105 else:
1106 yield d
1100
1107
1101 yield changegroup.closechunk()
1108 yield changegroup.closechunk()
1102
1109
General Comments 0
You need to be logged in to leave comments. Login now