From: Karl Hasselström Date: Thu, 13 Sep 2007 22:49:43 +0000 (+0200) Subject: It doesn't make sense to sink below an unapplied patch X-Git-Tag: v0.14.3~119 X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/commitdiff_plain/744773937f0d4fca0a763b167811279e8d44b460 It doesn't make sense to sink below an unapplied patch Signed-off-by: Karl Hasselström --- 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: