##// END OF EJS Templates
push: use `stepsdone` to control changegroup push through bundle10 or bundle20...
Pierre-Yves David -
r21902:7a7def85 default
parent child Browse files
Show More
@@ -139,8 +139,7 b' def push(repo, remote, force=False, revs'
139 False)
139 False)
140 and pushop.remote.capable('bundle2-exp')):
140 and pushop.remote.capable('bundle2-exp')):
141 _pushbundle2(pushop)
141 _pushbundle2(pushop)
142 else:
142 _pushchangeset(pushop)
143 _pushchangeset(pushop)
144 _pushcomputecommonheads(pushop)
143 _pushcomputecommonheads(pushop)
145 _pushsyncphase(pushop)
144 _pushsyncphase(pushop)
146 _pushobsolete(pushop)
145 _pushobsolete(pushop)
@@ -211,6 +210,9 b' def _pushb2ctx(pushop, bundler):'
211
210
212 addchangegroup result is stored in the ``pushop.ret`` attribute.
211 addchangegroup result is stored in the ``pushop.ret`` attribute.
213 """
212 """
213 if 'changesets' in pushop.stepsdone:
214 return
215 pushop.stepsdone.add('changesets')
214 # Send known heads to the server for race detection.
216 # Send known heads to the server for race detection.
215 if not pushop.force:
217 if not pushop.force:
216 bundler.newpart('B2X:CHECK:HEADS', data=iter(pushop.remoteheads))
218 bundler.newpart('B2X:CHECK:HEADS', data=iter(pushop.remoteheads))
@@ -263,6 +265,9 b' def _pushbundle2extrareply(pushop, op, e'
263
265
264 def _pushchangeset(pushop):
266 def _pushchangeset(pushop):
265 """Make the actual push of changeset bundle to remote repo"""
267 """Make the actual push of changeset bundle to remote repo"""
268 if 'changesets' in pushop.stepsdone:
269 return
270 pushop.stepsdone.add('changesets')
266 outgoing = pushop.outgoing
271 outgoing = pushop.outgoing
267 unbundle = pushop.remote.capable('unbundle')
272 unbundle = pushop.remote.capable('unbundle')
268 # TODO: get bundlecaps from remote
273 # TODO: get bundlecaps from remote
General Comments 0
You need to be logged in to leave comments. Login now