diff mercurial/wireprototypes.py @ 40542: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
line wrap: on
line diff
--- a/mercurial/wireprototypes.py	Thu Nov 01 16:51:21 2018 -0700
+++ b/mercurial/wireprototypes.py	Tue Oct 16 17:53:26 2018 +0300
@@ -162,6 +162,8 @@
     'cg': 'boolean',
     'cbattempted': 'boolean',
     'stream': 'boolean',
+    'includepats': 'csv',
+    'excludepats': 'csv',
 }
 
 class baseprotocolhandler(interfaceutil.Interface):