]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
add HEAD sentinel file that contains migration revision
authorMark McClain <mmcclain@yahoo-inc.com>
Fri, 7 Mar 2014 20:07:43 +0000 (15:07 -0500)
committerMark McClain <mmcclain@yahoo-inc.com>
Wed, 19 Mar 2014 16:40:29 +0000 (12:40 -0400)
commit36d85f831ae8eb21383806261bfc4c3d53dd1929
tree23608e44dda6ebd5752781a8e3bca3f1d18fbe3b
parent30342f608e7b66142dfca53d69d1ef49e554969e
add HEAD sentinel file that contains migration revision

This change wraps the command to generate a migration with code to
update a file called HEAD. The HEAD file will contain the revision ID
of the head of the migraton timeline. Additionally, check migrations has
been altered to verify the contents of this file against the timeline
head.

This file helps the OpenStack gate detect potential migration branches
without running alembic via git merge conflicts.

Closes-Bug:1288427
Change-Id: If382c57baea061753d3f4fcd6faec1a31fbfb7ed
neutron/db/migration/alembic_migrations/versions/HEAD [new file with mode: 0644]
neutron/db/migration/cli.py
neutron/tests/unit/test_db_migration.py
tox.ini