Dulwich.io dulwich / 8dcbdbc
Advertise more capabilities. Jelmer Vernooń≥ 5 months ago
2 changed file(s) with 9 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
143143 UPLOAD_CAPABILITIES = ([CAPABILITY_THIN_PACK, CAPABILITY_MULTI_ACK,
144144 CAPABILITY_MULTI_ACK_DETAILED, CAPABILITY_SHALLOW]
145145 + COMMON_CAPABILITIES)
146 RECEIVE_CAPABILITIES = [CAPABILITY_REPORT_STATUS] + COMMON_CAPABILITIES
146 RECEIVE_CAPABILITIES = (
147 [CAPABILITY_REPORT_STATUS, CAPABILITY_DELETE_REFS]
148 + COMMON_CAPABILITIES)
147149
148150
149151 class ReportStatusParser(object):
4747 # fatal error message just before stream aborts
4848 SIDE_BAND_CHANNEL_FATAL = 3
4949
50 CAPABILITY_ATOMIC = b'atomic'
5051 CAPABILITY_DEEPEN_SINCE = b'deepen-since'
5152 CAPABILITY_DEEPEN_NOT = b'deepen-not'
5253 CAPABILITY_DEEPEN_RELATIVE = b'deepen-relative'
8889 CAPABILITY_DEEPEN_RELATIVE,
8990 ])
9091 KNOWN_RECEIVE_CAPABILITIES = set(COMMON_CAPABILITIES + [
91 CAPABILITY_REPORT_STATUS])
92 CAPABILITY_REPORT_STATUS,
93 CAPABILITY_DELETE_REFS,
94 CAPABILITY_QUIET,
95 CAPABILITY_ATOMIC,
96 ])
9297
9398
9499 def agent_string():