Mercurial > evolve
changeset 1832:41b531dab3ad
compat: drop support for ancestral pushop object
Pushoperation object have a 'cgresult' attribute in all the versions we support.
author | Pierre-Yves David <pierre-yves.david@ens-lyon.org> |
---|---|
date | Tue, 28 Feb 2017 14:28:23 +0100 |
parents | 0195dc7bdfa4 |
children | 545761a5a5b3 |
files | hgext3rd/evolve/__init__.py |
diffstat | 1 files changed, 1 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext3rd/evolve/__init__.py Tue Feb 28 14:27:54 2017 +0100 +++ b/hgext3rd/evolve/__init__.py Tue Feb 28 14:28:23 2017 +0100 @@ -3564,11 +3564,7 @@ if 'obsmarkers' in stepsdone: return stepsdone.add('obsmarkers') - if util.safehasattr(pushop, 'cgresult'): - cgresult = pushop.cgresult - else: - cgresult = pushop.ret - if cgresult == 0: + if pushop.cgresult == 0: return pushop.ui.debug('try to push obsolete markers to remote\n') repo = pushop.repo