changeset 1077:cdfc19f25478

obsexc: push nothing if push fail This is closer to the future behavior with bundle2.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Wed, 27 Aug 2014 12:29:40 +0200
parents 2039385d6460
children 5717d023da63
files hgext/evolve.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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