Convert "stg delete" to the new infrastructure
authorKarl Hasselström <kha@treskal.com>
Tue, 20 May 2008 21:33:24 +0000 (23:33 +0200)
committerKarl Hasselström <kha@treskal.com>
Tue, 20 May 2008 21:33:24 +0000 (23:33 +0200)
commit5901dd6bcd6dff12f869cd5660abad46b2c6b630
tree508bfb05da3b4bcf07debb5bfeae113642c87e74
parent27b0f9e4669780e65afce41e64c713c8c6f4e196
Convert "stg delete" to the new infrastructure

In the process, it gains the ability to delete any applied patch (not
just the topmost one, like before), even when deleting patches from
another branch. (However, when deleting patches on another branch, we
obviously can't represent a conflict in the index and worktree, so any
conflicts will make the operation abort.)

One of the t1600 subtests made sure that we couldn't delete
non-topmost patches, and had to be corrected.

Signed-off-by: Karl Hasselström <kha@treskal.com>
stgit/commands/delete.py
t/t1600-delete-one.sh