mercurial/exchange.py
changeset 25559 521c1a3139c9
parent 25516 1e37bd83dc66
child 25640 39f0064a3079
equal deleted inserted replaced
25558:daf9f7ee2a5c 25559:521c1a3139c9
   787 
   787 
   788 def _pushobsolete(pushop):
   788 def _pushobsolete(pushop):
   789     """utility function to push obsolete markers to a remote"""
   789     """utility function to push obsolete markers to a remote"""
   790     if 'obsmarkers' in pushop.stepsdone:
   790     if 'obsmarkers' in pushop.stepsdone:
   791         return
   791         return
   792     pushop.ui.debug('try to push obsolete markers to remote\n')
       
   793     repo = pushop.repo
   792     repo = pushop.repo
   794     remote = pushop.remote
   793     remote = pushop.remote
   795     pushop.stepsdone.add('obsmarkers')
   794     pushop.stepsdone.add('obsmarkers')
   796     if pushop.outobsmarkers:
   795     if pushop.outobsmarkers:
       
   796         pushop.ui.debug('try to push obsolete markers to remote\n')
   797         rslts = []
   797         rslts = []
   798         remotedata = obsolete._pushkeyescape(sorted(pushop.outobsmarkers))
   798         remotedata = obsolete._pushkeyescape(sorted(pushop.outobsmarkers))
   799         for key in sorted(remotedata, reverse=True):
   799         for key in sorted(remotedata, reverse=True):
   800             # reverse sort to ensure we end with dump0
   800             # reverse sort to ensure we end with dump0
   801             data = remotedata[key]
   801             data = remotedata[key]