##// END OF EJS Templates
wireproto: use decorator for the changegroupsubset command
Pierre-Yves David -
r20913:fc7219ec default
parent child Browse files
Show More
@@ -581,6 +581,7 b' def changegroup(repo, proto, roots):'
581 cg = repo.changegroup(nodes, 'serve')
581 cg = repo.changegroup(nodes, 'serve')
582 return streamres(proto.groupchunks(cg))
582 return streamres(proto.groupchunks(cg))
583
583
584 @wireprotocommand('changegroupsubset', 'bases heads')
584 def changegroupsubset(repo, proto, bases, heads):
585 def changegroupsubset(repo, proto, bases, heads):
585 bases = decodelist(bases)
586 bases = decodelist(bases)
586 heads = decodelist(heads)
587 heads = decodelist(heads)
@@ -787,7 +788,6 b' def unbundle(repo, proto, heads):'
787 os.unlink(tempname)
788 os.unlink(tempname)
788
789
789 commands.update({
790 commands.update({
790 'changegroupsubset': (changegroupsubset, 'bases heads'),
791 'debugwireargs': (debugwireargs, 'one two *'),
791 'debugwireargs': (debugwireargs, 'one two *'),
792 'getbundle': (getbundle, '*'),
792 'getbundle': (getbundle, '*'),
793 'heads': (heads, ''),
793 'heads': (heads, ''),
General Comments 0
You need to be logged in to leave comments. Login now