Show More
@@ -80,9 +80,13 b' def writebundle(cg, filename, bundletype' | |||
|
80 | 80 | # in case of sshrepo because we don't know the end of the stream |
|
81 | 81 | |
|
82 | 82 | # an empty chunkiter is the end of the changegroup |
|
83 | # a changegroup has at least 2 chunkiters (changelog and manifest). | |
|
84 | # after that, an empty chunkiter is the end of the changegroup | |
|
83 | 85 | empty = False |
|
84 | while not empty: | |
|
86 | count = 0 | |
|
87 | while not empty or count <= 2: | |
|
85 | 88 | empty = True |
|
89 | count += 1 | |
|
86 | 90 | for chunk in chunkiter(cg): |
|
87 | 91 | empty = False |
|
88 | 92 | fh.write(z.compress(chunkheader(len(chunk)))) |
General Comments 0
You need to be logged in to leave comments.
Login now