mercurial/exchange.py
changeset 26449 89b7a7883aee
parent 26448 e05fd574c922
child 26458 362793295640
--- a/mercurial/exchange.py	Fri Oct 02 22:16:34 2015 -0700
+++ b/mercurial/exchange.py	Fri Oct 02 23:04:52 2015 -0700
@@ -11,6 +11,7 @@
 import util, scmutil, changegroup, base85, error
 import discovery, phases, obsolete, bookmarks as bookmod, bundle2, pushkey
 import lock as lockmod
+import streamclone
 import tags
 
 def readbundle(ui, fh, fname, vfs=None):
@@ -963,6 +964,9 @@
     lock = pullop.repo.lock()
     try:
         pullop.trmanager = transactionmanager(repo, 'pull', remote.url())
+        streamclone.maybeperformstreamclone(pullop.repo, pullop.remote,
+                                            pullop.heads,
+                                            pullop.streamclonerequested)
         _pulldiscovery(pullop)
         if _canusebundle2(pullop):
             _pullbundle2(pullop)