From f3dd7770635d916a0b4d87575b8718b34ed4d00a Mon Sep 17 00:00:00 2001 From: Catalin Marinas Date: Tue, 26 Jul 2005 13:54:56 +0100 Subject: [PATCH] Fix the patch name checking in push.py For an unknown patch name, the assert in stack.py fails. Fix the calling function to check the pre-conditions. Signed-off-by: Catalin Marinas --- stgit/commands/push.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/stgit/commands/push.py b/stgit/commands/push.py index 6325483..6fbd779 100644 --- a/stgit/commands/push.py +++ b/stgit/commands/push.py @@ -117,6 +117,9 @@ def func(parser, options, args): patches.reverse() for p in patches: + if p not in unapplied: + raise CmdException, 'Patch "%s" not unapplied' % p + print 'Pushing patch "%s"...' % p, sys.stdout.flush() -- 2.11.0