doit/cmd_clean.py
def build_nodes_with_deps(self, tasks, task_name):
        """build node including task_dep's"""
        if task_name in self._processed:
            return
        else:
            self._processed.add(task_name)

        # add node itself if not in list of nodes
        self.nodes.setdefault(task_name, [])
        task = tasks[task_name]
        # reversing not required
        for dep_name in reversed(task.setup_tasks + task.task_dep):
            rev_dep = self.nodes.setdefault(dep_name, [])
            rev_dep.append(task_name)
            self.build_nodes_with_deps(tasks, dep_name)
build node including task_dep's
build node including task_dep's
build node including task_dep ' s
def build_nodes_with_deps(self, tasks, task_name):
        if task_name in self._processed:
            return
        else:
            self._processed.add(task_name)
        self.nodes.setdefault(task_name, [])
        task = tasks[task_name]
        for dep_name in reversed(task.setup_tasks + task.task_dep):
            rev_dep = self.nodes.setdefault(dep_name, [])
            rev_dep.append(task_name)
            self.build_nodes_with_deps(tasks, dep_name)
def build_nodes_with_deps ( self , tasks , task_name ) : if task_name in self . _processed : return else : self . _processed . add ( task_name ) self . nodes . setdefault ( task_name , [ ] ) task = tasks [ task_name ] for dep_name in reversed ( task . setup_tasks + task . task_dep ) : rev_dep = self . nodes . setdefault ( dep_name , [ ] ) rev_dep . append ( task_name ) self . build_nodes_with_deps ( tasks , dep_name )
build node including task_dep's
build node including task_dep ' s
"""build node including task_dep's""" # add node itself if not in list of nodes # reversing not required
self
tasks
task_name