Mercurial > hg
comparison mercurial/wireproto.py @ 26690:704818fb170d
exchange: advertise if a clone bundle was attempted
The client now sends a "cbattempted" boolean flag to the "getbundle"
wire protocol command to tell the server whether a clone bundle was
attempted.
The presence of this flag will enable the server to conditionally emit a
bundle2 "output" part advertising the availability of clone bundles to
compatible clients that don't have it enabled.
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Wed, 14 Oct 2015 10:36:20 -0700 |
parents | 3e7f675628ad |
children | e5a1df51bb25 |
comparison
equal
deleted
inserted
replaced
26689:2c9f15366982 | 26690:704818fb170d |
---|---|
158 gboptsmap = {'heads': 'nodes', | 158 gboptsmap = {'heads': 'nodes', |
159 'common': 'nodes', | 159 'common': 'nodes', |
160 'obsmarkers': 'boolean', | 160 'obsmarkers': 'boolean', |
161 'bundlecaps': 'scsv', | 161 'bundlecaps': 'scsv', |
162 'listkeys': 'csv', | 162 'listkeys': 'csv', |
163 'cg': 'boolean'} | 163 'cg': 'boolean', |
164 'cbattempted': 'boolean'} | |
164 | 165 |
165 # client side | 166 # client side |
166 | 167 |
167 class wirepeer(peer.peerrepository): | 168 class wirepeer(peer.peerrepository): |
168 | 169 |