# HG changeset patch # User Martin von Zweigbergk # Date 2019-09-18 20:50:33 # Node ID 9668744c91223b4fc5461a432a5f61c02be4cfcd # Parent 2c14bf83b58b6b8926a15775cb369db0e3d577ea 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 diff --git a/mercurial/wireprototypes.py b/mercurial/wireprototypes.py --- a/mercurial/wireprototypes.py +++ b/mercurial/wireprototypes.py @@ -147,14 +147,14 @@ def unescapebatcharg(escaped): # mapping of options accepted by getbundle and their types # -# Meant to be extended by extensions. It is extensions responsibility to ensure -# such options are properly processed in exchange.getbundle. +# Meant to be extended by extensions. It is the extension's responsibility to +# ensure such options are properly processed in exchange.getbundle. # # supported types are: # -# :nodes: list of binary nodes -# :csv: list of comma-separated values -# :scsv: list of comma-separated values return as set +# :nodes: list of binary nodes, transmitted as space-separated hex nodes +# :csv: list of values, transmitted as comma-separated values +# :scsv: set of values, transmitted as comma-separated values # :plain: string with no transformation needed. GETBUNDLE_ARGUMENTS = { 'heads': 'nodes',