quilt/db.py
def add_patch(self, patch):
        """ Add a patch to the patches list """
        patchline = PatchLine(patch)
        patch = patchline.get_patch()
        if patch:
            self.patch2line[patch] = patchline
        self.patchlines.append(patchline)
def add_patch(self, patch):
        """ Add a patch to the patches list """
        patchline = PatchLine(patch)
        patch = patchline.get_patch()
        if patch:
            self.patch2line[patch] = patchline
        self.patchlines.append(patchline)
Add a patch to the patches list