]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commitdiff
More informative error message when trying to retrieve a single head, but there are...
authorOliver Beattie <oliver@obeattie.com>
Thu, 5 Sep 2013 16:03:24 +0000 (17:03 +0100)
committerOliver Beattie <oliver@obeattie.com>
Thu, 5 Sep 2013 16:03:24 +0000 (17:03 +0100)
alembic/script.py

index 77366e30650f47043436c82397d1d0edec131811..d019480e2d20d70083ab0359a07203de980cfc14 100644 (file)
@@ -246,6 +246,11 @@ class ScriptDirectory(object):
         """
         current_heads = self.get_heads()
         if len(current_heads) > 1:
+            raise util.CommandError('Only a single head is supported. The '
+                'script directory has multiple heads (due to branching), which'
+                'must be resolved by manually editing the revision files to '
+                'form a linear sequence. Run `alembic branches` to see the '
+                'divergence(s).')
             raise util.CommandError("Only a single head supported so far...")
         if current_heads:
             return current_heads[0]