Show More
@@ -353,7 +353,9 def find_pullbundle(repo, proto, opts, c | |||||
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 |
@@ -46,9 +46,9 Test pullbundle functionality | |||||
46 | $ hg bundle --base 1 -r 2 .hg/2.hg |
|
46 | $ hg bundle --base 1 -r 2 .hg/2.hg | |
47 | 1 changesets found |
|
47 | 1 changesets found | |
48 | $ cat <<EOF > .hg/pullbundles.manifest |
|
48 | $ cat <<EOF > .hg/pullbundles.manifest | |
49 | > 2.hg heads=effea6de0384e684f44435651cb7bd70b8735bd4 bases=bbd179dfa0a71671c253b3ae0aa1513b60d199fa |
|
49 | > 2.hg BUNDLESPEC=none-v2 heads=effea6de0384e684f44435651cb7bd70b8735bd4 bases=bbd179dfa0a71671c253b3ae0aa1513b60d199fa | |
50 | > 1.hg heads=ed1b79f46b9a29f5a6efa59cf12fcfca43bead5a bases=bbd179dfa0a71671c253b3ae0aa1513b60d199fa |
|
50 | > 1.hg BUNDLESPEC=bzip2-v2 heads=ed1b79f46b9a29f5a6efa59cf12fcfca43bead5a bases=bbd179dfa0a71671c253b3ae0aa1513b60d199fa | |
51 | > 0.hg heads=bbd179dfa0a71671c253b3ae0aa1513b60d199fa |
|
51 | > 0.hg BUNDLESPEC=gzip-v2 heads=bbd179dfa0a71671c253b3ae0aa1513b60d199fa | |
52 | > EOF |
|
52 | > EOF | |
53 | $ hg --config blackbox.track=debug --debug serve -p $HGPORT2 -d --pid-file=../repo.pid |
|
53 | $ hg --config blackbox.track=debug --debug serve -p $HGPORT2 -d --pid-file=../repo.pid | |
54 | listening at http://*:$HGPORT2/ (bound to $LOCALIP:$HGPORT2) (glob) (?) |
|
54 | listening at http://*:$HGPORT2/ (bound to $LOCALIP:$HGPORT2) (glob) (?) |
General Comments 0
You need to be logged in to leave comments.
Login now