Mercurial > public > mercurial-scm > hg
comparison mercurial/wireprototypes.py @ 42955:9668744c9122
wireprototypes: clarify documentation of getbundle argument types
It seems like it was a mix of what the Python code would see and what
was sent over the wire. I've tried to clarify both the type seen in
Python and how it's transmitted.
Differential Revision: https://phab.mercurial-scm.org/D6871
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Wed, 18 Sep 2019 13:50:33 -0700 |
parents | 2c4f656c8e9f |
children | 2372284d9457 |
comparison
equal
deleted
inserted
replaced
42954:2c14bf83b58b | 42955:9668744c9122 |
---|---|
145 .replace(':o', ',') | 145 .replace(':o', ',') |
146 .replace(':c', ':')) | 146 .replace(':c', ':')) |
147 | 147 |
148 # mapping of options accepted by getbundle and their types | 148 # mapping of options accepted by getbundle and their types |
149 # | 149 # |
150 # Meant to be extended by extensions. It is extensions responsibility to ensure | 150 # Meant to be extended by extensions. It is the extension's responsibility to |
151 # such options are properly processed in exchange.getbundle. | 151 # ensure such options are properly processed in exchange.getbundle. |
152 # | 152 # |
153 # supported types are: | 153 # supported types are: |
154 # | 154 # |
155 # :nodes: list of binary nodes | 155 # :nodes: list of binary nodes, transmitted as space-separated hex nodes |
156 # :csv: list of comma-separated values | 156 # :csv: list of values, transmitted as comma-separated values |
157 # :scsv: list of comma-separated values return as set | 157 # :scsv: set of values, transmitted as comma-separated values |
158 # :plain: string with no transformation needed. | 158 # :plain: string with no transformation needed. |
159 GETBUNDLE_ARGUMENTS = { | 159 GETBUNDLE_ARGUMENTS = { |
160 'heads': 'nodes', | 160 'heads': 'nodes', |
161 'bookmarks': 'boolean', | 161 'bookmarks': 'boolean', |
162 'common': 'nodes', | 162 'common': 'nodes', |