mercurial/exchange.py
changeset 22228 a3dc2d385490
parent 22227 98cbd41cb532
child 22238 c894fdff56d1
--- a/mercurial/exchange.py	Fri Aug 15 17:58:15 2014 -0700
+++ b/mercurial/exchange.py	Fri Aug 15 18:26:21 2014 -0700
@@ -613,6 +613,8 @@
 
 def _pushbookmark(pushop):
     """Update bookmark position on remote"""
+    if pushop.ret == 0:
+        return
     ui = pushop.ui
     repo = pushop.repo.unfiltered()
     remote = pushop.remote