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))) |