quilt/db.py
def add_patches(self, patches, after=None):
        """ Add a list of patches to the patches list """
        if after is None:
            self.insert_patches(patches)
        else:
            self._check_patch(after)
            patchlines = self._patchlines_before(after)
            patchlines.append(self.patch2line[after])
            for patch in patches:
                patchline = PatchLine(patch)
                patchlines.append(patchline)
                self.patch2line[patchline.get_patch()] = patchline
            patchlines.extend(self._patchlines_after(after))
            self.patchlines = patchlines
def add_patches(self, patches, after=None):
        """ Add a list of patches to the patches list """
        if after is None:
            self.insert_patches(patches)
        else:
            self._check_patch(after)
            patchlines = self._patchlines_before(after)
            patchlines.append(self.patch2line[after])
            for patch in patches:
                patchline = PatchLine(patch)
                patchlines.append(patchline)
                self.patch2line[patchline.get_patch()] = patchline
            patchlines.extend(self._patchlines_after(after))
            self.patchlines = patchlines
def add_patches ( self , patches , after = None ) : if after is None : self . insert_patches ( patches ) else : self . _check_patch ( after ) patchlines = self . _patchlines_before ( after ) patchlines . append ( self . patch2line [ after ] ) for patch in patches : patchline = PatchLine ( patch ) patchlines . append ( patchline ) self . patch2line [ patchline . get_patch ( ) ] = patchline patchlines . extend ( self . _patchlines_after ( after ) ) self . patchlines = patchlines
Add a list of patches to the patches list
Add a list of patches to the patches list