changeset 5364:54bf9ec2f81d stable

obsdiscovery: make some variables' names longer
author Anton Shestakov <av6@dwimlabs.net>
date Sat, 06 Jun 2020 19:43:58 +0800
parents 9a1c3a6af656
children 6af94b3be29e
files hgext3rd/evolve/obsdiscovery.py
diffstat 1 files changed, 13 insertions(+), 13 deletions(-) [+]
line wrap: on
line diff
--- 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)