chiark
/
gitweb
/
~mdw
/
stgit
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d8b2e60
)
It doesn't make sense to sink below an unapplied patch
author
Karl Hasselström
<kha@treskal.com>
Thu, 13 Sep 2007 22:49:43 +0000
(
00:49
+0200)
committer
Catalin Marinas
<catalin.marinas@gmail.com>
Sat, 15 Sep 2007 22:24:28 +0000
(23:24 +0100)
Signed-off-by: Karl Hasselström <kha@treskal.com>
stgit/commands/sink.py
patch
|
blob
|
blame
|
history
diff --git
a/stgit/commands/sink.py
b/stgit/commands/sink.py
index 85cc70f58a2de577436721578c047dd31d99b862..2a18ebceb20bced0b52c980bda63f428bb140ba5 100644
(file)
--- 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
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:
if len(args) > 0:
patches = parse_patches(args, all)
else: