Bug 1302786 - graph.named_links_dict changed to graph.named_links_dict[key]; r?dustin draft bug-1302786-3
authorHammad Akhtar <hammad13060@iiitd.ac.in>
Fri, 18 Nov 2016 04:38:28 +0530
branchbug-1302786-3
changeset 440639 3c63c4d3ada7c6d6c3e1eed1b56d141232098003
parent 439903 75b55c5a80f7f054a02fcea222f8a6c9840e9b36
child 724618 af2112d048365b304b6a6159f74f59003dd4533f
push id36283
push userhammad13060@iiitd.ac.in
push dateThu, 17 Nov 2016 23:09:52 +0000
reviewersdustin
bugs1302786
milestone52.0a1
Bug 1302786 - graph.named_links_dict changed to graph.named_links_dict[key]; r?dustin MozReview-Commit-ID: 7efKKRgvX3r
taskcluster/mach_commands.py
--- a/taskcluster/mach_commands.py
+++ b/taskcluster/mach_commands.py
@@ -260,17 +260,17 @@ class MachCommands(MachCommandBase):
         filteredtasks = {}
         filterededges = set()
         regexprogram = re.compile(tasksregex)
 
         for key in taskgraph.graph.visit_postorder():
             task = taskgraph.tasks[key]
             if regexprogram.match(task.label):
                 filteredtasks[key] = task
-                for depname, dep in named_links_dict.iteritems():
+                for depname, dep in named_links_dict[key].iteritems():
                     if regexprogram.match(dep):
                         filterededges.add((key, dep, depname))
         filtered_taskgraph = TaskGraph(filteredtasks, Graph(set(filteredtasks), filterededges))
         return filtered_taskgraph
 
 
 @CommandProvider
 class TaskClusterImagesProvider(object):