:version: 1.17.1
:include_notes_from: unreleased
- .. change::
- :tags: usecase, commands
- :tickets: 1705
-
- Added ``--check-heads`` option to ``current`` command which
- checks if all head revisions are applied to the database.
- The command exists with a non-zero exit code if this is not the
- case.
-
.. changelog::
:version: 1.17.0
:released: October 11, 2025
--- /dev/null
+.. change::
+ :tags: usecase, commands
+ :tickets: 1705
+
+ Added ``--check-heads`` option to ``current`` command which
+ checks if all head revisions are applied to the database.
+ The command exists with a non-zero exit code if this is not the
+ case.
with self._assert_lines(["a2", "b3"]):
command.current(self.cfg)
- def test_check_if_head_success(self):
+ def test_check_heads_success(self):
"""
- "--check-if-head" succeeds if all head revisions are applied.
+ "--check-heads" succeeds if all head revisions are applied.
"""
command.stamp(self.cfg, ())
command.stamp(self.cfg, (self.a3.revision, self.b3.revision))
@pytest.mark.parametrize(
"revs", [("a2",), ("a3",), ("b3",), ("a2", "b3"), ("a3", "b2")]
)
- def test_check_if_head_fail(self, revs):
+ def test_check_heads_fail(self, revs):
"""
- "--check-if-head" succeeds if all head revisions are applied.
+ "--check-heads" succeeds if all head revisions are applied.
"""
command.stamp(self.cfg, ())
command.stamp(