# HG changeset patch # User Pierre-Yves David # Date 1396042991 25200 # Node ID 588e24f3eea37b05c1aa78325a65fdd3b068f828 # Parent 70ed3174ce6910c769806c9de39d280d04f19c05 wireproto: use decorator for the stream command diff -r 70ed3174ce69 -r 588e24f3eea3 mercurial/wireproto.py --- a/mercurial/wireproto.py Fri Mar 28 14:42:55 2014 -0700 +++ b/mercurial/wireproto.py Fri Mar 28 14:43:11 2014 -0700 @@ -683,6 +683,7 @@ # this is it's own function so extensions can override it return repo.store.walk() +@wireprotocommand('stream_out') def stream(repo, proto): '''If the server supports streaming clone, it advertises the "stream" capability with a value representing the version and flags of the repo @@ -796,6 +797,5 @@ os.unlink(tempname) commands.update({ - 'stream_out': (stream, ''), 'unbundle': (unbundle, 'heads'), })