##// 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 def capabilities(repo, proto):
575 def capabilities(repo, proto):
576 return ' '.join(_capabilities(repo, proto))
576 return ' '.join(_capabilities(repo, proto))
577
577
578 @wireprotocommand('changegroup', 'roots')
578 def changegroup(repo, proto, roots):
579 def changegroup(repo, proto, roots):
579 nodes = decodelist(roots)
580 nodes = decodelist(roots)
580 cg = repo.changegroup(nodes, 'serve')
581 cg = repo.changegroup(nodes, 'serve')
@@ -786,7 +787,6 b' def unbundle(repo, proto, heads):'
786 os.unlink(tempname)
787 os.unlink(tempname)
787
788
788 commands.update({
789 commands.update({
789 'changegroup': (changegroup, 'roots'),
790 'changegroupsubset': (changegroupsubset, 'bases heads'),
790 'changegroupsubset': (changegroupsubset, 'bases heads'),
791 'debugwireargs': (debugwireargs, 'one two *'),
791 'debugwireargs': (debugwireargs, 'one two *'),
792 'getbundle': (getbundle, '*'),
792 'getbundle': (getbundle, '*'),
General Comments 0
You need to be logged in to leave comments. Login now