quilt/push.py
def apply_patch(self, patch_name, force=False, quiet=False):
        """ Apply all patches up to patch_name """
        self._check()
        patch = Patch(patch_name)
        patches = self.series.patches_until(patch)[:]

        applied = self.db.applied_patches()
        for patch in applied:
            if patch in patches:
                patches.remove(patch)

        if not patches:
            raise AllPatchesApplied(self.series, self.db.top_patch())

        self.applying(patch)

        try:
            for cur_patch in patches:
                self._apply_patch(cur_patch, force, quiet)
        finally:
            self.db.save()

        self.applied(self.db.top_patch())
def apply_patch(self, patch_name, force=False, quiet=False):
        """ Apply all patches up to patch_name """
        self._check()
        patch = Patch(patch_name)
        patches = self.series.patches_until(patch)[:]

        applied = self.db.applied_patches()
        for patch in applied:
            if patch in patches:
                patches.remove(patch)

        if not patches:
            raise AllPatchesApplied(self.series, self.db.top_patch())

        self.applying(patch)

        try:
            for cur_patch in patches:
                self._apply_patch(cur_patch, force, quiet)
        finally:
            self.db.save()

        self.applied(self.db.top_patch())
def apply_patch ( self , patch_name , force = False , quiet = False ) : self . _check ( ) patch = Patch ( patch_name ) patches = self . series . patches_until ( patch ) [ : ] applied = self . db . applied_patches ( ) for patch in applied : if patch in patches : patches . remove ( patch ) if not patches : raise AllPatchesApplied ( self . series , self . db . top_patch ( ) ) self . applying ( patch ) try : for cur_patch in patches : self . _apply_patch ( cur_patch , force , quiet ) finally : self . db . save ( ) self . applied ( self . db . top_patch ( ) )
Apply all patches up to patch_name
Apply all patches up to patch_name