Mercurial > public > mercurial-scm > hg-stable
diff mercurial/localrepo.py @ 16361:6097ede2be4d
protocol: Add the stream-preferred capability
This makes the client use the uncompressed protocol.
author | Benoit Allard <benoit@aeteurope.nl> |
---|---|
date | Wed, 04 Apr 2012 00:00:47 +0200 |
parents | 17f179805297 |
children | 4417eb761ba8 |
line wrap: on
line diff
--- a/mercurial/localrepo.py Wed Mar 28 16:06:20 2012 +0200 +++ b/mercurial/localrepo.py Wed Apr 04 00:00:47 2012 +0200 @@ -2290,6 +2290,10 @@ # and format flags on "stream" capability, and use # uncompressed only if compatible. + if not stream: + # if the server explicitely prefer to stream (for fast LANs) + stream = remote.capable('stream-preferred') + if stream and not heads: # 'stream' means remote revlog format is revlogv1 only if remote.capable('stream'):