mercurial/wireprototypes.py
changeset 37613 96d735601ca1
parent 37612 5e71dea79aae
child 37644 77c9ee77687c
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