From: Catalin Marinas Date: Wed, 30 Sep 2009 20:51:19 +0000 (+0100) Subject: Delete the hidden patches as well when deleting a branch X-Git-Tag: v0.15-rc4~6 X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/commitdiff_plain/63bffebacfdc5a87275e53a51b3263c9bddd93f7 Delete the hidden patches as well when deleting a branch Signed-off-by: Catalin Marinas --- diff --git a/stgit/stack.py b/stgit/stack.py index 9958e7a..93647f2 100644 --- a/stgit/stack.py +++ b/stgit/stack.py @@ -624,7 +624,8 @@ class Series(PatchSet): """Deletes an stgit series """ if self.is_initialised(): - patches = self.get_unapplied() + self.get_applied() + patches = self.get_unapplied() + self.get_applied() + \ + self.get_hidden(); if not force and patches: raise StackException, \ 'Cannot delete: the series still contains patches'