##// END OF EJS Templates
allow the creation of bundles with empty changelog/manifest chunks
Alexis S. L. Carvalho -
r5906:0136d7f5 default
parent child Browse files
Show More
@@ -80,9 +80,13 b' def writebundle(cg, filename, bundletype'
80 # in case of sshrepo because we don't know the end of the stream
80 # in case of sshrepo because we don't know the end of the stream
81
81
82 # an empty chunkiter is the end of the changegroup
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 empty = False
85 empty = False
84 while not empty:
86 count = 0
87 while not empty or count <= 2:
85 empty = True
88 empty = True
89 count += 1
86 for chunk in chunkiter(cg):
90 for chunk in chunkiter(cg):
87 empty = False
91 empty = False
88 fh.write(z.compress(chunkheader(len(chunk))))
92 fh.write(z.compress(chunkheader(len(chunk))))
General Comments 0
You need to be logged in to leave comments. Login now