Fix "stg sink" with no applied patches (bug 11887)
authorKarl Hasselström <kha@treskal.com>
Sun, 29 Jun 2008 22:36:24 +0000 (00:36 +0200)
committerKarl Hasselström <kha@treskal.com>
Sun, 29 Jun 2008 22:38:55 +0000 (00:38 +0200)
commitcd65a83bcf40b7c991b359099d9a9a894ae7a696
tree5dabd8933166942777efc042c759f5a89d712d5d
parent205b1af9e9649152dfc10d9456396dc74bec6daf
Fix "stg sink" with no applied patches (bug 11887)

There were two separate things to fix: bail out if we need a current
patch and there isn't one (because there are no applied patches), and
make sure we don't try to pop patches that don't exist.

Signed-off-by: Karl Hasselström <kha@treskal.com>
stgit/commands/sink.py
t/t1501-sink.sh