##// END OF EJS Templates
wireproto: use decorator for the changegroup command
Pierre-Yves David -
r20912:96ecb77f default
parent child Browse files
Show More
@@ -575,6 +575,7 b' def _capabilities(repo, proto):'
575 575 def capabilities(repo, proto):
576 576 return ' '.join(_capabilities(repo, proto))
577 577
578 @wireprotocommand('changegroup', 'roots')
578 579 def changegroup(repo, proto, roots):
579 580 nodes = decodelist(roots)
580 581 cg = repo.changegroup(nodes, 'serve')
@@ -786,7 +787,6 b' def unbundle(repo, proto, heads):'
786 787 os.unlink(tempname)
787 788
788 789 commands.update({
789 'changegroup': (changegroup, 'roots'),
790 790 'changegroupsubset': (changegroupsubset, 'bases heads'),
791 791 'debugwireargs': (debugwireargs, 'one two *'),
792 792 'getbundle': (getbundle, '*'),
General Comments 0
You need to be logged in to leave comments. Login now