# HG changeset patch # User Pierre-Yves David # Date 1396042746 25200 # Node ID d81b518a18624e0da3e94b681b64f806177b0a47 # Parent fc7219ec08bb608b912780bba190a74805778dd7 wireproto: use decorator for the debugwireargs command diff -r fc7219ec08bb -r d81b518a1862 mercurial/wireproto.py --- a/mercurial/wireproto.py Fri Mar 28 14:38:40 2014 -0700 +++ b/mercurial/wireproto.py Fri Mar 28 14:39:06 2014 -0700 @@ -588,6 +588,7 @@ cg = repo.changegroupsubset(bases, heads, 'serve') return streamres(proto.groupchunks(cg)) +@wireprotocommand('debugwireargs', 'one two *') def debugwireargs(repo, proto, one, two, others): # only accept optional args from the known set opts = options('debugwireargs', ['three', 'four'], others) @@ -788,7 +789,6 @@ os.unlink(tempname) commands.update({ - 'debugwireargs': (debugwireargs, 'one two *'), 'getbundle': (getbundle, '*'), 'heads': (heads, ''), 'hello': (hello, ''),