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 896234 3c63c4d3ada7c6d6c3e1eed1b56d141232098003
parent 894890 75b55c5a80f7f054a02fcea222f8a6c9840e9b36
child 896235 216f2bc81a0674dbdfb5eec2fd873575c568d812
push id155447
push userhammad13060@iiitd.ac.in
push dateThu, 17 Nov 2016 23:12:14 +0000
treeherdertry@216f2bc81a06 [default view] [failures only]
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):