def insert_patches(self, patches):
patchlines = []<EOL>for patch_name in patches:<EOL><INDENT>patchline = PatchLine(patch_name)<EOL>patch = patchline.get_patch()<EOL>if patch:<EOL><INDENT>self.patch2line[patch] = patchline<EOL><DEDENT>patchlines.append(patchline)<EOL><DEDENT>patchlines.extend(self.patchlines)<EOL>self.patchlines = patchlines<EOL>
Insert list of patches at the front of the curent patches list