:tags: bug, versioning, regression
:tickets: 839
- Fixed regression in new versioning traversal where "alembic downgrade head"
- (or equivalent) fails instead of iterating no revisions.
+ Fixed additional regression nearly the same as that of :ticket:`838` just
+ released in 1.6.1 but within a slightly different codepath, where "alembic
+ downgrade head" (or equivalent) would fail instead of iterating no
+ revisions.
self._assert_downgrade("base", [], [], set())
def test_downgrade_to_existing(self):
+ """test for #838; downgrade to a revision that's already in
+ current heads, but is not itself a head."""
+
self._assert_downgrade(
self.a.revision, [self.a.revision], [], {self.a.revision}
)
def test_downgrade_to_existing_head(self):
+ """test for #839; downgrade to a revision that's already in current
+ heads, which *is* itself a head."""
+
self._assert_downgrade(
self.e.revision, [self.e.revision], [], {self.e.revision}
)