# HG changeset patch # User Anton Shestakov # Date 1578902734 -25200 # Node ID 86adb777d8c9c8303ed880e6fbfae98b0b96fd6f # Parent cfd000e0032df9cb3c61f412ce1ecfcae45abe54 obshistory: remove unused successorsetallmarkers() This function was used in code that was removed in 901186e1fe05. diff -r cfd000e0032d -r 86adb777d8c9 hgext3rd/evolve/obshistory.py --- 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