mercurial/wireproto.py
changeset 37490 3a91911c4343
parent 37489 6e6d68c2d39c
child 37498 aacfca6f9767
equal deleted inserted replaced
37489:6e6d68c2d39c 37490:3a91911c4343
   929     cg = changegroupmod.makechangegroup(repo, outgoing, '01', 'serve')
   929     cg = changegroupmod.makechangegroup(repo, outgoing, '01', 'serve')
   930     gen = iter(lambda: cg.read(32768), '')
   930     gen = iter(lambda: cg.read(32768), '')
   931     return wireprototypes.streamres(gen=gen)
   931     return wireprototypes.streamres(gen=gen)
   932 
   932 
   933 @wireprotocommand('debugwireargs', 'one two *',
   933 @wireprotocommand('debugwireargs', 'one two *',
   934                   permission='pull')
   934                   permission='pull', transportpolicy=POLICY_V1_ONLY)
   935 def debugwireargs(repo, proto, one, two, others):
   935 def debugwireargs(repo, proto, one, two, others):
   936     # only accept optional args from the known set
   936     # only accept optional args from the known set
   937     opts = options('debugwireargs', ['three', 'four'], others)
   937     opts = options('debugwireargs', ['three', 'four'], others)
   938     return wireprototypes.bytesresponse(repo.debugwireargs(
   938     return wireprototypes.bytesresponse(repo.debugwireargs(
   939         one, two, **pycompat.strkwargs(opts)))
   939         one, two, **pycompat.strkwargs(opts)))