# HG changeset patch # User Anton Shestakov # Date 1591443838 -28800 # Node ID 0648b93c4760851f57bd6c7bec60947e27c76645 # Parent f06c76832c81f3d0e2f3d390b07bbbae123f05b1 obsdiscovery: make some variables' names longer diff -r f06c76832c81 -r 0648b93c4760 hgext3rd/evolve/obsdiscovery.py --- a/hgext3rd/evolve/obsdiscovery.py Sat Jun 06 19:32:15 2020 +0800 +++ b/hgext3rd/evolve/obsdiscovery.py Sat Jun 06 19:43:58 2020 +0800 @@ -300,25 +300,25 @@ while node_to_proceed or marker_to_proceed: while marker_to_proceed: - m = marker_to_proceed.pop() + marker = marker_to_proceed.pop() # check successors and parent - if m[1]: - relevant = (m[1], ) + if marker[1]: + relevant = (marker[1], ) else: # prune case - relevant = ((m[0], ), m[5]) - for l in relevant: - if l is None: + relevant = ((marker[0], ), marker[5]) + for relnodes in relevant: + if relnodes is None: continue - for n in l: - if n not in affected_nodes: - node_to_proceed.add(n) - affected_nodes.add(n) + for node in relnodes: + if node not in affected_nodes: + node_to_proceed.add(node) + affected_nodes.add(node) # marker_to_proceed is now empty: if node_to_proceed: - n = node_to_proceed.pop() + node = node_to_proceed.pop() markers = set() - markers.update(obsstore.successors.get(n, ())) - markers.update(obsstore.predecessors.get(n, ())) + markers.update(obsstore.successors.get(node, ())) + markers.update(obsstore.predecessors.get(node, ())) markers -= known_markers marker_to_proceed.update(markers) known_markers.update(markers)