changeset 26686 | 3e7f675628ad |
parent 26587 | 56b2bcea2529 |
child 26690 | 704818fb170d |
--- a/mercurial/wireproto.py Thu Oct 15 03:29:00 2015 +0100 +++ b/mercurial/wireproto.py Wed Oct 14 10:58:35 2015 -0700 @@ -625,7 +625,12 @@ elif keytype == 'scsv': opts[k] = set(v.split(',')) elif keytype == 'boolean': - opts[k] = bool(v) + # Client should serialize False as '0', which is a non-empty string + # so it evaluates as a True bool. + if v == '0': + opts[k] = False + else: + opts[k] = bool(v) elif keytype != 'plain': raise KeyError('unknown getbundle option type %s' % keytype)