Mercurial > hg
comparison mercurial/wireprototypes.py @ 40492:440f5b65be57
exchange: pass includepats and excludepats as arguments to getbundle()
This will help in implementing narrow stream clones. Also narrow extension used
to add these arguments, now we add them by default if they are not empty.
Since reading includepats and excludepats on the server only works when narrow
is enabled, we check if narrow if enabled or not before passing them.
Differential Revision: https://phab.mercurial-scm.org/D5119
author | Pulkit Goyal <pulkit@yandex-team.ru> |
---|---|
date | Tue, 16 Oct 2018 17:53:26 +0300 |
parents | 2c55716f8a1c |
children | 3e47d1ec9da5 |
comparison
equal
deleted
inserted
replaced
40491:c311424ea579 | 40492:440f5b65be57 |
---|---|
160 'bundlecaps': 'scsv', | 160 'bundlecaps': 'scsv', |
161 'listkeys': 'csv', | 161 'listkeys': 'csv', |
162 'cg': 'boolean', | 162 'cg': 'boolean', |
163 'cbattempted': 'boolean', | 163 'cbattempted': 'boolean', |
164 'stream': 'boolean', | 164 'stream': 'boolean', |
165 'includepats': 'csv', | |
166 'excludepats': 'csv', | |
165 } | 167 } |
166 | 168 |
167 class baseprotocolhandler(interfaceutil.Interface): | 169 class baseprotocolhandler(interfaceutil.Interface): |
168 """Abstract base class for wire protocol handlers. | 170 """Abstract base class for wire protocol handlers. |
169 | 171 |