# HG changeset patch # User Pierre-Yves David # Date 1396042699 25200 # Node ID 96ecb77f971d5d5728b11ba66a03376cf814d911 # Parent 1bb8ed6c000cc5f07cbded303eb9bfef84b72af9 wireproto: use decorator for the changegroup command diff -r 1bb8ed6c000c -r 96ecb77f971d mercurial/wireproto.py --- a/mercurial/wireproto.py Fri Mar 28 14:37:28 2014 -0700 +++ b/mercurial/wireproto.py Fri Mar 28 14:38:19 2014 -0700 @@ -575,6 +575,7 @@ def capabilities(repo, proto): return ' '.join(_capabilities(repo, proto)) +@wireprotocommand('changegroup', 'roots') def changegroup(repo, proto, roots): nodes = decodelist(roots) cg = repo.changegroup(nodes, 'serve') @@ -786,7 +787,6 @@ os.unlink(tempname) commands.update({ - 'changegroup': (changegroup, 'roots'), 'changegroupsubset': (changegroupsubset, 'bases heads'), 'debugwireargs': (debugwireargs, 'one two *'), 'getbundle': (getbundle, '*'),