Commit 16fec5a5 authored by Anton Shestakov's avatar Anton Shestakov
Browse files

obsdiscovery: make some variables' names longer

parent f06c76832c81
Pipeline #6615 failed with stage
in 5 minutes and 10 seconds
......@@ -300,25 +300,25 @@ def _affectedby(repo, markers):
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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment