Comments
Patch
@@ -617,13 +617,19 @@ def changegroupsubset(repo, proto, bases
def debugwireargs(repo, proto, one, two, others):
# only accept optional args from the known set
opts = options('debugwireargs', ['three', 'four'], others)
return repo.debugwireargs(one, two, **opts)
+# list of options accepted by getbundle.
+#
+# Meant to be extended by extensions. It is extensions responsability to unsure
+# such option are properly processed in exchange.getbundle.
+gboptslist = ['heads', 'common', 'bundlecaps']
+
@wireprotocommand('getbundle', '*')
def getbundle(repo, proto, others):
- opts = options('getbundle', ['heads', 'common', 'bundlecaps'], others)
+ opts = options('getbundle', gboptslist, others)
for k, v in opts.iteritems():
if k in ('heads', 'common'):
opts[k] = decodelist(v)
elif k == 'bundlecaps':
opts[k] = set(v.split(','))