obsexc: push nothing if push fail
authorPierre-Yves David <pierre-yves.david@fb.com>
Wed, 27 Aug 2014 12:29:40 +0200
changeset 1077 cdfc19f25478
parent 1076 2039385d6460
child 1078 5717d023da63
obsexc: push nothing if push fail This is closer to the future behavior with bundle2.
hgext/evolve.py
--- a/hgext/evolve.py	Fri Aug 29 10:13:44 2014 +0200
+++ b/hgext/evolve.py	Wed Aug 27 12:29:40 2014 +0200
@@ -2440,6 +2440,8 @@
         if 'obsmarkers' in stepsdone:
             return
         stepsdone.add('obsmarkers')
+    if pushop.ret == 0:
+        return
     pushop.ui.debug('try to push obsolete markers to remote\n')
     repo = pushop.repo
     remote = pushop.remote