Make sure that we only uncommit commits with exactly one parent
authorKarl Hasselström <kha@treskal.com>
Thu, 20 Mar 2008 23:12:11 +0000 (23:12 +0000)
committerCatalin Marinas <catalin.marinas@gmail.com>
Thu, 20 Mar 2008 23:12:11 +0000 (23:12 +0000)
commit4fe3436ba426814d6682f585226961d29475b65e
treef90e38987fa4b3f00b0ea11fa3a79e31e49a5900
parentb9d9ba14bf9fc47ab1ae9c41e6e37029b9f31002
Make sure that we only uncommit commits with exactly one parent

If we encounter a commit with 0, or 2 or more parents, fail with a
nice error message instead of crashing.

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