Fix deletion and move of a hidden patch (gna bug #9244).
authorYann Dirson <ydirson@altern.org>
Mon, 4 Jun 2007 21:14:43 +0000 (23:14 +0200)
committerCatalin Marinas <catalin.marinas@gmail.com>
Mon, 4 Jun 2007 22:44:24 +0000 (23:44 +0100)
commitdfb3bddeb856a6f6751f8deaf5a0403ebada21a3
tree0c1bd4426fcf32691bd057b28f9507298d918cfb
parent2ace36ab494d7f3ee2748e74be92568725078828
Fix deletion and move of a hidden patch (gna bug #9244).

We must unhide a patch before we delete it, or we get an exception
while trying to unhide a non-existent patch.

Similarly, when renaming a hidden patch, we must take care of hiding
an unhiding at the right moment.

Both problems introduced in commit
841c7b2a6b015e3ab3331713cf10caf7a4fd0b49 when first indroducing patch
hiding.

Signed-off-by: Yann Dirson <ydirson@altern.org>
stgit/stack.py
t/t1600-delete-one.sh