X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/blobdiff_plain/fcc1ad70be5ff89996358b6d770cd229fec2a3ba..5a636ab334ec9414052aaf228010f3e43760b733:/stgit/stack.py diff --git a/stgit/stack.py b/stgit/stack.py index 7c6677d..18b4c6e 100644 --- a/stgit/stack.py +++ b/stgit/stack.py @@ -427,9 +427,8 @@ class Series: if not force and patches: raise StackException, \ 'Cannot delete: the series still contains patches' - patches.reverse() for p in patches: - self.delete_patch(p) + Patch(p, self.__patch_dir).delete() if os.path.exists(self.__applied_file): os.remove(self.__applied_file)