]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commit
Don't raise RangeNotAncestor for sibling branches
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 18 Jul 2016 21:17:53 +0000 (17:17 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 19 Jul 2016 17:25:08 +0000 (13:25 -0400)
commit2df9c522563055ffcb5637d8bd875b438db70349
tree38464a84c0a4d04fa0e92ba9997160dbd9c2eb28
parentae06cffc608fdf9bd5e34eae4dc8b62336a68680
Don't raise RangeNotAncestor for sibling branches

Fixed bug where upgrading to the head of a branch which is already
present would fail, only if that head were also the dependency
of a different branch that is also upgraded, as the revision system
would see this as trying to go in the wrong direction.   The check
here has been refined to distinguish between same-branch revisions
out of order vs. movement along sibling branches.

When we're about to claim an error due to
"alembic upgrade greater to lower", make sure this
isn't a request to hit a node in a different branch
that's already implied.

Change-Id: I8641162bb05c6226f0ea12b88b548df41f5a6b51
Fixes: #336
alembic/script/revision.py
docs/build/changelog.rst
tests/test_revision.py