Slightly change the multiple patches delete function
commit2153b8f56dfa10936ca934a68a364dacdf161117
authorCatalin Marinas <catalin.marinas@gmail.com>
Thu, 2 Nov 2006 21:18:33 +0000 (2 21:18 +0000)
committerCatalin Marinas <catalin.marinas@gmail.com>
Thu, 2 Nov 2006 21:18:33 +0000 (2 21:18 +0000)
treeb44053d3fe693ec89fc0859639237182d575a5ed
parent87bcf96e1932268c3bb67c99bde6c8e897ec9fdf
Slightly change the multiple patches delete function

The function now first checks whether it can do the operation (i.e. the
applied patches are in consecutive reverse order starting from topmost)
before performing any deletes. It also eliminates the need to check for
local changes with every delete or when the operation is targetted to a
different branch.

Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
stgit/commands/delete.py