Mercurial > hg
comparison mercurial/changegroup.py @ 26272:59c410db8c68
readbundle: fix typo of None compression
The test simulates pre-d1b16a746db6 hgweb that sends "unbundle" capability
with no argument.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Fri, 18 Sep 2015 21:32:43 +0900 |
parents | a0eff7ebc2ae |
children | 127b59787fd5 |
comparison
equal
deleted
inserted
replaced
26271:a0eff7ebc2ae | 26272:59c410db8c68 |
---|---|
78 elif changedheads < 0: | 78 elif changedheads < 0: |
79 result = -1 + changedheads | 79 result = -1 + changedheads |
80 return result | 80 return result |
81 | 81 |
82 bundletypes = { | 82 bundletypes = { |
83 "": ("", 'None'), # only when using unbundle on ssh and old http servers | 83 "": ("", None), # only when using unbundle on ssh and old http servers |
84 # since the unification ssh accepts a header but there | 84 # since the unification ssh accepts a header but there |
85 # is no capability signaling it. | 85 # is no capability signaling it. |
86 "HG20": (), # special-cased below | 86 "HG20": (), # special-cased below |
87 "HG10UN": ("HG10UN", None), | 87 "HG10UN": ("HG10UN", None), |
88 "HG10BZ": ("HG10", 'BZ'), | 88 "HG10BZ": ("HG10", 'BZ'), |