Show More
@@ -895,7 +895,6 def pull(repo, remote, heads=None, force | |||
|
895 | 895 | " %s") % (', '.join(sorted(missing))) |
|
896 | 896 | raise util.Abort(msg) |
|
897 | 897 | |
|
898 | pullop.remotebookmarks = remote.listkeys('bookmarks') | |
|
899 | 898 | lock = pullop.repo.lock() |
|
900 | 899 | try: |
|
901 | 900 | pullop.trmanager = transactionmanager(repo, 'pull', remote.url()) |
@@ -943,6 +942,16 def _pulldiscovery(pullop): | |||
|
943 | 942 | step = pulldiscoverymapping[stepname] |
|
944 | 943 | step(pullop) |
|
945 | 944 | |
|
945 | @pulldiscovery('b1:bookmarks') | |
|
946 | def _pullbookmarkbundle1(pullop): | |
|
947 | """fetch bookmark data in bundle1 case | |
|
948 | ||
|
949 | If not using bundle2, we have to fetch bookmarks before changeset | |
|
950 | discovery to reduce the chance and impact of race conditions.""" | |
|
951 | if not _canusebundle2(pullop): # all bundle2 server now support listkeys | |
|
952 | pullop.remotebookmarks = pullop.remote.listkeys('bookmarks') | |
|
953 | ||
|
954 | ||
|
946 | 955 | @pulldiscovery('changegroup') |
|
947 | 956 | def _pulldiscoverychangegroup(pullop): |
|
948 | 957 | """discovery phase for the pull |
General Comments 0
You need to be logged in to leave comments.
Login now