Mercurial > hg-stable
changeset 20913:fc7219ec08bb
wireproto: use decorator for the changegroupsubset command
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Fri, 28 Mar 2014 14:38:40 -0700 |
parents | 96ecb77f971d |
children | d81b518a1862 |
files | mercurial/wireproto.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/wireproto.py Fri Mar 28 14:38:19 2014 -0700 +++ b/mercurial/wireproto.py Fri Mar 28 14:38:40 2014 -0700 @@ -581,6 +581,7 @@ 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 @@ os.unlink(tempname) commands.update({ - 'changegroupsubset': (changegroupsubset, 'bases heads'), 'debugwireargs': (debugwireargs, 'one two *'), 'getbundle': (getbundle, '*'), 'heads': (heads, ''),