Show More
@@ -337,8 +337,6 b' class httprepository(remoterepository):' | |||
|
337 | 337 | # have to stream bundle to a temp file because we do not have |
|
338 | 338 | # http 1.1 chunked transfer. |
|
339 | 339 | |
|
340 | use_compress = 'standardbundle' in self.capabilities | |
|
341 | ||
|
342 | 340 | # XXX duplication from commands.py |
|
343 | 341 | class nocompress(object): |
|
344 | 342 | def compress(self, x): |
@@ -346,7 +344,13 b' class httprepository(remoterepository):' | |||
|
346 | 344 | def flush(self): |
|
347 | 345 | return "" |
|
348 | 346 | |
|
349 | if use_compress: | |
|
347 | unbundleversions = self.capable('unbundle') | |
|
348 | try: | |
|
349 | unbundleversions = unbundleversions.split(',') | |
|
350 | except AttributeError: | |
|
351 | unbundleversions = [""] | |
|
352 | ||
|
353 | if "HG10GZ" in unbundleversions: | |
|
350 | 354 | header = "HG10GZ" |
|
351 | 355 | z = zlib.compressobj() |
|
352 | 356 | else: |
General Comments 0
You need to be logged in to leave comments.
Login now