From: Catalin Marinas Date: Tue, 26 Jul 2005 12:54:56 +0000 (+0100) Subject: Fix the patch name checking in push.py X-Git-Tag: v0.14.3~732 X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/commitdiff_plain/f3dd7770635d916a0b4d87575b8718b34ed4d00a 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 --- 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()