# HG changeset patch # User Pierre-Yves David # Date 1488288503 -3600 # Node ID 41b531dab3ad9965f0b45d322f4e578c9405ee50 # Parent 0195dc7bdfa4f57a5da4fb2b62e95e5032025d3c compat: drop support for ancestral pushop object Pushoperation object have a 'cgresult' attribute in all the versions we support. diff -r 0195dc7bdfa4 -r 41b531dab3ad hgext3rd/evolve/__init__.py --- 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