From 744773937f0d4fca0a763b167811279e8d44b460 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Karl=20Hasselstr=C3=B6m?= Date: Fri, 14 Sep 2007 00:49:43 +0200 Subject: [PATCH] It doesn't make sense to sink below an unapplied patch MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Karl Hasselström --- stgit/commands/sink.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/stgit/commands/sink.py b/stgit/commands/sink.py index 85cc70f..2a18ebc 100644 --- a/stgit/commands/sink.py +++ b/stgit/commands/sink.py @@ -50,6 +50,10 @@ def func(parser, options, args): unapplied = crt_series.get_unapplied() all = unapplied + oldapplied + if options.to and not options.to in oldapplied: + raise CmdException('Cannot sink below %s, since it is not applied' + % options.to) + if len(args) > 0: patches = parse_patches(args, all) else: -- 2.11.0