##// END OF EJS Templates
bundle2: pull bookmark the old way if no bundle2 listkeys support (issue4701)...
Pierre-Yves David -
r25479:f00a63a4 default
parent child Browse files
Show More
@@ -955,8 +955,12 b' def _pullbookmarkbundle1(pullop):'
955 discovery to reduce the chance and impact of race conditions."""
955 discovery to reduce the chance and impact of race conditions."""
956 if pullop.remotebookmarks is not None:
956 if pullop.remotebookmarks is not None:
957 return
957 return
958 if not _canusebundle2(pullop): # all bundle2 server now support listkeys
958 if (_canusebundle2(pullop)
959 pullop.remotebookmarks = pullop.remote.listkeys('bookmarks')
959 and 'listkeys' in bundle2.bundle2caps(pullop.remote)):
960 # all known bundle2 servers now support listkeys, but lets be nice with
961 # new implementation.
962 return
963 pullop.remotebookmarks = pullop.remote.listkeys('bookmarks')
960
964
961
965
962 @pulldiscovery('changegroup')
966 @pulldiscovery('changegroup')
General Comments 0
You need to be logged in to leave comments. Login now