# HG changeset patch # User Pierre-Yves David # Date 1396042648 25200 # Node ID 1bb8ed6c000cc5f07cbded303eb9bfef84b72af9 # Parent acbfce12fafd9ed7148d3c0f504a33d405750563 wireproto: use decorator for the capabilities command diff -r acbfce12fafd -r 1bb8ed6c000c mercurial/wireproto.py --- a/mercurial/wireproto.py Fri Mar 28 14:37:02 2014 -0700 +++ b/mercurial/wireproto.py Fri Mar 28 14:37:28 2014 -0700 @@ -571,6 +571,7 @@ # If you are writting and extension and consider wrapping this function. Wrap # `_capabilities` instead. +@wireprotocommand('capabilities') def capabilities(repo, proto): return ' '.join(_capabilities(repo, proto)) @@ -785,7 +786,6 @@ os.unlink(tempname) commands.update({ - 'capabilities': (capabilities, ''), 'changegroup': (changegroup, 'roots'), 'changegroupsubset': (changegroupsubset, 'bases heads'), 'debugwireargs': (debugwireargs, 'one two *'),