Mercurial > evolve
comparison hgext/evolve.py @ 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 |
comparison
equal
deleted
inserted
replaced
1076:2039385d6460 | 1077:cdfc19f25478 |
---|---|
2438 stepsdone = getattr(pushop, 'stepsdone', None) | 2438 stepsdone = getattr(pushop, 'stepsdone', None) |
2439 if stepsdone is not None: | 2439 if stepsdone is not None: |
2440 if 'obsmarkers' in stepsdone: | 2440 if 'obsmarkers' in stepsdone: |
2441 return | 2441 return |
2442 stepsdone.add('obsmarkers') | 2442 stepsdone.add('obsmarkers') |
2443 if pushop.ret == 0: | |
2444 return | |
2443 pushop.ui.debug('try to push obsolete markers to remote\n') | 2445 pushop.ui.debug('try to push obsolete markers to remote\n') |
2444 repo = pushop.repo | 2446 repo = pushop.repo |
2445 remote = pushop.remote | 2447 remote = pushop.remote |
2446 unfi = repo.unfiltered() | 2448 unfi = repo.unfiltered() |
2447 cl = unfi.changelog | 2449 cl = unfi.changelog |