hgext/evolve.py
changeset 756 64c6bdfd0518
parent 752 bfdfdf731f8a
child 757 0ff862dcddbd
--- a/hgext/evolve.py	Mon Dec 02 23:31:45 2013 +0530
+++ b/hgext/evolve.py	Thu Dec 26 14:42:22 2013 -0800
@@ -604,13 +604,11 @@
     if not repo.local():
         return
 
-    opush = repo.push
-
     class evolvingrepo(repo.__class__):
         def push(self, remote, *args, **opts):
             """wrapper around pull that pull obsolete relation"""
             try:
-                result = opush(remote, *args, **opts)
+                result = super(evolvingrepo, self).push(remote, *args, **opts)
             except util.Abort, ex:
                 hint = _("use 'hg evolve' to get a stable history "
                          "or --force to ignore warnings")