Read a release whose items all moved to other releases as renamed, never finished

This commit is contained in:
2026-10-18 00:03:20 +02:00
parent e291f6ca3d
commit 32eb16cd20
13 changed files with 65 additions and 21 deletions
+2 -2
View File
@@ -78,10 +78,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. A pull request's own commits do not count, only the merge that landed it: --first-parent."""
"""todo.md's text at tag and at each later commit on ref that changed it, oldest first, 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", "--first-parent", "--format=%H", f"{tag}..{ref}", "--", "todo.md", cwd=cwd)
changed = git("log", "--first-parent", "--reverse", "--format=%H", f"{tag}..{ref}", "--", "todo.md", cwd=cwd)
if isinstance(changed, Failure):
return changed
texts = []