Show More
@@ -11,6 +11,7 import errno, urllib | |||
|
11 | 11 | import util, scmutil, changegroup, base85, error |
|
12 | 12 | import discovery, phases, obsolete, bookmarks as bookmod, bundle2, pushkey |
|
13 | 13 | import lock as lockmod |
|
14 | import streamclone | |
|
14 | 15 | import tags |
|
15 | 16 | |
|
16 | 17 | def readbundle(ui, fh, fname, vfs=None): |
@@ -963,6 +964,9 def pull(repo, remote, heads=None, force | |||
|
963 | 964 | lock = pullop.repo.lock() |
|
964 | 965 | try: |
|
965 | 966 | pullop.trmanager = transactionmanager(repo, 'pull', remote.url()) |
|
967 | streamclone.maybeperformstreamclone(pullop.repo, pullop.remote, | |
|
968 | pullop.heads, | |
|
969 | pullop.streamclonerequested) | |
|
966 | 970 | _pulldiscovery(pullop) |
|
967 | 971 | if _canusebundle2(pullop): |
|
968 | 972 | _pullbundle2(pullop) |
@@ -19,7 +19,6 from lock import release | |||
|
19 | 19 | import weakref, errno, os, time, inspect, random |
|
20 | 20 | import branchmap, pathutil |
|
21 | 21 | import namespaces |
|
22 | import streamclone | |
|
23 | 22 | propertycache = util.propertycache |
|
24 | 23 | filecache = scmutil.filecache |
|
25 | 24 | |
@@ -1794,8 +1793,6 class localrepository(object): | |||
|
1794 | 1793 | keyword arguments: |
|
1795 | 1794 | heads: list of revs to clone (forces use of pull) |
|
1796 | 1795 | stream: use streaming clone if possible''' |
|
1797 | streamclone.maybeperformstreamclone(self, remote, heads, stream) | |
|
1798 | ||
|
1799 | 1796 | # internal config: ui.quietbookmarkmove |
|
1800 | 1797 | quiet = self.ui.backupconfig('ui', 'quietbookmarkmove') |
|
1801 | 1798 | try: |
General Comments 0
You need to be logged in to leave comments.
Login now