refactor: public names for cross-module reads

This commit is contained in:
Abdessamad Derraz committed 2026-11-18 22:59:51 +01:00
1 parent f371790dc6
commit 3853ca2f1c
254 files changed
+2955 -2969

No files matched your search

+1 -1
View File
@@ -407,6 +407,6 @@ def build_revision(profile: dict, platform: str) -> str | None:
return None
def _on_own_revision(view: RepoView, tagged: dict[tuple[str, str], str]) -> bool:
def reads_own_revision(view: RepoView, tagged: dict[tuple[str, str], str]) -> bool:
"""Whether a view is read at its own revision: on HEAD, or on its tag."""
return view.pin == view.head or (view.repo.host, view.repo.slug) in tagged