Mercurial > public > mercurial-scm > hg-stable
diff mercurial/wireproto.py @ 37534:465187fec06f
wireproto: only expose "stream_out" to version 1 transports
I have plans to implement stream clone using a better mechanism than
this existing command. Let's not carry it forward to wire protocol
version 2.
Differential Revision: https://phab.mercurial-scm.org/D3201
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Fri, 06 Apr 2018 16:49:57 -0700 |
parents | df4985497986 |
children | 69e46c1834ac |
line wrap: on
line diff
--- a/mercurial/wireproto.py Mon Apr 09 11:52:31 2018 -0700 +++ b/mercurial/wireproto.py Fri Apr 06 16:49:57 2018 -0700 @@ -1150,7 +1150,8 @@ output = output.getvalue() if output else '' return wireprototypes.bytesresponse('%d\n%s' % (int(r), output)) -@wireprotocommand('stream_out', permission='pull') +@wireprotocommand('stream_out', permission='pull', + transportpolicy=POLICY_V1_ONLY) 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