compat: drop support for ancestral pushop object
authorPierre-Yves David <pierre-yves.david@ens-lyon.org>
Tue, 28 Feb 2017 14:28:23 +0100
changeset 1832 41b531dab3ad
parent 1831 0195dc7bdfa4
child 1833 545761a5a5b3
compat: drop support for ancestral pushop object Pushoperation object have a 'cgresult' attribute in all the versions we support.
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