mercurial/exchange.py
changeset 22228 a3dc2d385490
parent 22227 98cbd41cb532
child 22238 c894fdff56d1
equal deleted inserted replaced
22227:98cbd41cb532 22228:a3dc2d385490
   611             msg = _('failed to push some obsolete markers!\n')
   611             msg = _('failed to push some obsolete markers!\n')
   612             repo.ui.warn(msg)
   612             repo.ui.warn(msg)
   613 
   613 
   614 def _pushbookmark(pushop):
   614 def _pushbookmark(pushop):
   615     """Update bookmark position on remote"""
   615     """Update bookmark position on remote"""
       
   616     if pushop.ret == 0:
       
   617         return
   616     ui = pushop.ui
   618     ui = pushop.ui
   617     repo = pushop.repo.unfiltered()
   619     repo = pushop.repo.unfiltered()
   618     remote = pushop.remote
   620     remote = pushop.remote
   619     ui.debug("checking for updated bookmarks\n")
   621     ui.debug("checking for updated bookmarks\n")
   620     ancestors = ()
   622     ancestors = ()