mercurial/localrepo.py
changeset 16361 6097ede2be4d
parent 16253 17f179805297
child 16371 4417eb761ba8
--- 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'):