Answer stability round 3: 0 🔴, 4 🟡; test todo.md at the cut, before it and on a merged side branch through real git, count only the default branch's own commits since the cut, test a cut release named at the tag, restore the UTF-8 and timeout tests of git, and drop the wall-clock asserts

This commit is contained in:
2026-10-17 02:50:29 +02:00
parent c89dd87a18
commit 46ccea1322
6 changed files with 68 additions and 16 deletions
+2 -2
View File
@@ -79,10 +79,10 @@ def default_plan(root: str, ref: str) -> DefaultPlan:
def todos_since(tag: str | None | Failure, ref: str, cwd: str) -> list[str] | Failure:
"""todo.md's text at tag and at each later commit on ref that changed it, read in cwd; empty where there is no tag."""
"""todo.md's text at tag and at each later commit on ref that changed it, read in cwd; empty where there is no tag. A pull request's own commits do not count, only the merge that landed it: --first-parent."""
if not isinstance(tag, str):
return []
changed = git("log", "--format=%H", f"{tag}..{ref}", "--", "todo.md", cwd=cwd)
changed = git("log", "--first-parent", "--format=%H", f"{tag}..{ref}", "--", "todo.md", cwd=cwd)
if isinstance(changed, Failure):
return changed
texts = []