##// END OF EJS Templates
pull: skip pulling remote bookmarks with bundle2 if a value already exists...
Pierre-Yves David -
r25444:1d1fd5d4 default
parent child Browse files
Show More
@@ -1006,7 +1006,11 b' def _pullbundle2(pullop):'
1006 kwargs['heads'] = pullop.heads or pullop.rheads
1006 kwargs['heads'] = pullop.heads or pullop.rheads
1007 kwargs['cg'] = pullop.fetch
1007 kwargs['cg'] = pullop.fetch
1008 if 'listkeys' in remotecaps:
1008 if 'listkeys' in remotecaps:
1009 kwargs['listkeys'] = ['phase', 'bookmarks']
1009 kwargs['listkeys'] = ['phase']
1010 if pullop.remotebookmarks is None:
1011 # make sure to always includes bookmark data when migrating
1012 # `hg incoming --bundle` to using this function.
1013 kwargs['listkeys'].append('bookmarks')
1010 if not pullop.fetch:
1014 if not pullop.fetch:
1011 pullop.repo.ui.status(_("no changes found\n"))
1015 pullop.repo.ui.status(_("no changes found\n"))
1012 pullop.cgresult = 0
1016 pullop.cgresult = 0
@@ -1038,7 +1042,10 b' def _pullbundle2(pullop):'
1038 for namespace, value in op.records['listkeys']:
1042 for namespace, value in op.records['listkeys']:
1039 if namespace == 'bookmarks':
1043 if namespace == 'bookmarks':
1040 pullop.remotebookmarks = value
1044 pullop.remotebookmarks = value
1041 _pullbookmarks(pullop)
1045
1046 # bookmark data were either already there or pulled in the bundle
1047 if pullop.remotebookmarks is not None:
1048 _pullbookmarks(pullop)
1042
1049
1043 def _pullbundle2extraprepare(pullop, kwargs):
1050 def _pullbundle2extraprepare(pullop, kwargs):
1044 """hook function so that extensions can extend the getbundle call"""
1051 """hook function so that extensions can extend the getbundle call"""
General Comments 0
You need to be logged in to leave comments. Login now