--- a/mercurial/wireproto.py Fri Apr 06 17:48:07 2018 -0700
+++ b/mercurial/wireproto.py Mon Apr 09 11:54:31 2018 -0700
@@ -1019,7 +1019,8 @@
continue
return None
-@wireprotocommand('getbundle', '*', permission='pull')
+@wireprotocommand('getbundle', '*', permission='pull',
+ transportpolicy=POLICY_V1_ONLY)
def getbundle(repo, proto, others):
opts = options('getbundle', gboptsmap.keys(), others)
for k, v in opts.iteritems():
@@ -1178,7 +1179,8 @@
return wireprototypes.streamreslegacy(
streamclone.generatev1wireproto(repo))
-@wireprotocommand('unbundle', 'heads', permission='push')
+@wireprotocommand('unbundle', 'heads', permission='push',
+ transportpolicy=POLICY_V1_ONLY)
def unbundle(repo, proto, heads):
their_heads = decodelist(heads)