Mercurial > hg
comparison mercurial/wireprotov1server.py @ 38678:7e4a856a4f05
pullbundle: fix handling of gzip bundlespecs
Differential Revision: https://phab.mercurial-scm.org/D3933
author | Joerg Sonnenberger <joerg@bec.de> |
---|---|
date | Thu, 12 Jul 2018 15:29:03 +0200 |
parents | aac4be30e250 |
children | ad8d8dc9be3f |
comparison
equal
deleted
inserted
replaced
38677:2a227782e754 | 38678:7e4a856a4f05 |
---|---|
351 cl = repo.changelog | 351 cl = repo.changelog |
352 heads_anc = cl.ancestors([cl.rev(rev) for rev in heads], inclusive=True) | 352 heads_anc = cl.ancestors([cl.rev(rev) for rev in heads], inclusive=True) |
353 common_anc = cl.ancestors([cl.rev(rev) for rev in common], inclusive=True) | 353 common_anc = cl.ancestors([cl.rev(rev) for rev in common], inclusive=True) |
354 compformats = clientcompressionsupport(proto) | 354 compformats = clientcompressionsupport(proto) |
355 for entry in res: | 355 for entry in res: |
356 if 'COMPRESSION' in entry and entry['COMPRESSION'] not in compformats: | 356 comp = entry.get('COMPRESSION') |
357 altcomp = util.compengines._bundlenames.get(comp) | |
358 if comp and comp not in compformats and altcomp not in compformats: | |
357 continue | 359 continue |
358 # No test yet for VERSION, since V2 is supported by any client | 360 # No test yet for VERSION, since V2 is supported by any client |
359 # that advertises partial pulls | 361 # that advertises partial pulls |
360 if 'heads' in entry: | 362 if 'heads' in entry: |
361 try: | 363 try: |