##// END OF EJS Templates
push: feed pushoperation object to _pushobsolete function...
Pierre-Yves David -
r20433:6af24847 default
parent child Browse files
Show More
@@ -247,7 +247,7 b' def push(repo, remote, force=False, revs'
247 pushop.ui.warn(_('updating %s to public failed!\n')
247 pushop.ui.warn(_('updating %s to public failed!\n')
248 % newremotehead)
248 % newremotehead)
249 pushop.ui.debug('try to push obsolete markers to remote\n')
249 pushop.ui.debug('try to push obsolete markers to remote\n')
250 _pushobsolete(pushop.repo, pushop.remote)
250 _pushobsolete(pushop)
251 finally:
251 finally:
252 if lock is not None:
252 if lock is not None:
253 lock.release()
253 lock.release()
@@ -258,10 +258,12 b' def push(repo, remote, force=False, revs'
258 _pushbookmark(pushop)
258 _pushbookmark(pushop)
259 return ret
259 return ret
260
260
261 def _pushobsolete(repo, remote):
261 def _pushobsolete(pushop):
262 """utility function to push obsolete markers to a remote
262 """utility function to push obsolete markers to a remote
263
263
264 Exist mostly to allow overriding for experimentation purpose"""
264 Exist mostly to allow overriding for experimentation purpose"""
265 repo = pushop.repo
266 remote = pushop.remote
265 if (obsolete._enabled and repo.obsstore and
267 if (obsolete._enabled and repo.obsstore and
266 'obsolete' in remote.listkeys('namespaces')):
268 'obsolete' in remote.listkeys('namespaces')):
267 rslts = []
269 rslts = []
General Comments 0
You need to be logged in to leave comments. Login now