evolve: drop a very old safe guard about bad marker
authorPierre-Yves David <pierre-yves.david@fb.com>
Wed, 27 Aug 2014 17:36:35 +0200
changeset 1083 46048124c44b
parent 1082 74bc8a0c2c02
child 1084 5459d9f48fea
evolve: drop a very old safe guard about bad marker The do not clean marker with nullrev successors. I assume none of them remains.
hgext/evolve.py
--- a/hgext/evolve.py	Wed Aug 27 17:31:21 2014 +0200
+++ b/hgext/evolve.py	Wed Aug 27 17:36:35 2014 +0200
@@ -347,30 +347,6 @@
     if not opts.get('user') and opts.get('current_user'):
         opts['user'] = ui.username()
 
-
-#####################################################################
-### Critical fix                                                  ###
-#####################################################################
-
-@eh.wrapfunction(mercurial.obsolete, '_readmarkers')
-def safereadmarkers(orig, data):
-    """safe maker wrapper to remove nullid succesors
-
-    Nullid successors was created by older version of evolve.
-    """
-    nb = 0
-    for marker in orig(data):
-        if nullid in marker[1]:
-            marker = (marker[0],
-                      tuple(s for s in marker[1] if s != nullid),
-                      marker[2],
-                      marker[3])
-            nb += 1
-        yield marker
-    if nb:
-        e = sys.stderr
-        print >> e, 'repo contains %i invalid obsolescence markers' % nb
-
 getrevs = obsolete.getrevs
 
 #####################################################################