~mdw
/
stgit
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Using delete_patch while deleting a branch is broken
[stgit]
/
stgit
/
stack.py
diff --git
a/stgit/stack.py
b/stgit/stack.py
index
7c6677d
..
18b4c6e
100644
(file)
--- 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'
if not force and patches:
raise StackException, \
'Cannot delete: the series still contains patches'
- patches.reverse()
for p in patches:
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)
if os.path.exists(self.__applied_file):
os.remove(self.__applied_file)