[StGit PATCH] It doesn't make sense to sink below an unapplied patch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Karl Hasselström <kha@xxxxxxxxxxx>

---

Jon, does this fix the problem for you?

 stgit/commands/sink.py |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)


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:

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux