changeset 5071:86adb777d8c9

obshistory: remove unused successorsetallmarkers() This function was used in code that was removed in 901186e1fe05.
author Anton Shestakov <av6@dwimlabs.net>
date Mon, 13 Jan 2020 15:05:34 +0700
parents cfd000e0032d
children 3c1a5754d983
files hgext3rd/evolve/obshistory.py
diffstat 1 files changed, 0 insertions(+), 28 deletions(-) [+]
line wrap: on
line diff
--- a/hgext3rd/evolve/obshistory.py	Mon Jan 13 15:04:02 2020 +0700
+++ b/hgext3rd/evolve/obshistory.py	Mon Jan 13 15:05:34 2020 +0700
@@ -830,31 +830,3 @@
 @eh.wrapfunction(obsutil, 'obsfateverb')
 def obsfateverb(orig, *args, **kwargs):
     return _successorsetverb(*args, **kwargs)[b'verb']
-
-def successorsetallmarkers(successorset, pathscache):
-    """compute all successors of a successorset.
-
-    pathscache must contains all successors starting from selected nodes
-    or revision. This way, iterating on each successor, we can take all
-    precursors and have the subgraph of all obsmarkers between roots to
-    successors.
-    """
-
-    markers = set()
-    seen = set()
-
-    for successor in successorset:
-        stack = [successor]
-
-        while stack:
-            element = stack.pop()
-            seen.add(element)
-            for prec, mark in pathscache.get(element, []):
-                if prec not in seen:
-                    # Process element precursors
-                    stack.append(prec)
-
-                if mark not in markers:
-                    markers.add(mark)
-
-    return markers