##// END OF EJS Templates
wireproto: use decorator for the capabilities command
Pierre-Yves David -
r20911:1bb8ed6c default
parent child Browse files
Show More
@@ -571,6 +571,7 b' def _capabilities(repo, proto):'
571
571
572 # If you are writting and extension and consider wrapping this function. Wrap
572 # If you are writting and extension and consider wrapping this function. Wrap
573 # `_capabilities` instead.
573 # `_capabilities` instead.
574 @wireprotocommand('capabilities')
574 def capabilities(repo, proto):
575 def capabilities(repo, proto):
575 return ' '.join(_capabilities(repo, proto))
576 return ' '.join(_capabilities(repo, proto))
576
577
@@ -785,7 +786,6 b' def unbundle(repo, proto, heads):'
785 os.unlink(tempname)
786 os.unlink(tempname)
786
787
787 commands.update({
788 commands.update({
788 'capabilities': (capabilities, ''),
789 'changegroup': (changegroup, 'roots'),
789 'changegroup': (changegroup, 'roots'),
790 'changegroupsubset': (changegroupsubset, 'bases heads'),
790 'changegroupsubset': (changegroupsubset, 'bases heads'),
791 'debugwireargs': (debugwireargs, 'one two *'),
791 'debugwireargs': (debugwireargs, 'one two *'),
General Comments 0
You need to be logged in to leave comments. Login now