Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/wireprototypes.py @ 37613:96d735601ca1
wireproto: move gboptsmap to wireprototypes and rename (API)
This is also shared between client and server and will need to
exist in a shared module when that code is split into different
modules.
Differential Revision: https://phab.mercurial-scm.org/D3258
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Wed, 11 Apr 2018 10:51:38 -0700 |
parents | 5e71dea79aae |
children | 77c9ee77687c |
comparison
equal
deleted
inserted
replaced
37612:5e71dea79aae | 37613:96d735601ca1 |
---|---|
132 .replace(':e', '=') | 132 .replace(':e', '=') |
133 .replace(':s', ';') | 133 .replace(':s', ';') |
134 .replace(':o', ',') | 134 .replace(':o', ',') |
135 .replace(':c', ':')) | 135 .replace(':c', ':')) |
136 | 136 |
137 # mapping of options accepted by getbundle and their types | |
138 # | |
139 # Meant to be extended by extensions. It is extensions responsibility to ensure | |
140 # such options are properly processed in exchange.getbundle. | |
141 # | |
142 # supported types are: | |
143 # | |
144 # :nodes: list of binary nodes | |
145 # :csv: list of comma-separated values | |
146 # :scsv: list of comma-separated values return as set | |
147 # :plain: string with no transformation needed. | |
148 GETBUNDLE_ARGUMENTS = { | |
149 'heads': 'nodes', | |
150 'bookmarks': 'boolean', | |
151 'common': 'nodes', | |
152 'obsmarkers': 'boolean', | |
153 'phases': 'boolean', | |
154 'bundlecaps': 'scsv', | |
155 'listkeys': 'csv', | |
156 'cg': 'boolean', | |
157 'cbattempted': 'boolean', | |
158 'stream': 'boolean', | |
159 } | |
160 | |
137 class baseprotocolhandler(zi.Interface): | 161 class baseprotocolhandler(zi.Interface): |
138 """Abstract base class for wire protocol handlers. | 162 """Abstract base class for wire protocol handlers. |
139 | 163 |
140 A wire protocol handler serves as an interface between protocol command | 164 A wire protocol handler serves as an interface between protocol command |
141 handlers and the wire protocol transport layer. Protocol handlers provide | 165 handlers and the wire protocol transport layer. Protocol handlers provide |