# HG changeset patch # User Pierre-Yves David # Date 2014-03-28 21:38:40 # Node ID fc7219ec08bb608b912780bba190a74805778dd7 # Parent 96ecb77f971d5d5728b11ba66a03376cf814d911 wireproto: use decorator for the changegroupsubset command diff --git a/mercurial/wireproto.py b/mercurial/wireproto.py --- a/mercurial/wireproto.py +++ b/mercurial/wireproto.py @@ -581,6 +581,7 @@ def changegroup(repo, proto, roots): cg = repo.changegroup(nodes, 'serve') return streamres(proto.groupchunks(cg)) +@wireprotocommand('changegroupsubset', 'bases heads') def changegroupsubset(repo, proto, bases, heads): bases = decodelist(bases) heads = decodelist(heads) @@ -787,7 +788,6 @@ def unbundle(repo, proto, heads): os.unlink(tempname) commands.update({ - 'changegroupsubset': (changegroupsubset, 'bases heads'), 'debugwireargs': (debugwireargs, 'one two *'), 'getbundle': (getbundle, '*'), 'heads': (heads, ''),