refactor: split resolve_local_file stages

This commit is contained in:
Abdessamad Derraz committed 2026-11-24 05:54:38 +01:00
1 parent 39a4c86917
commit 2d79a2e1b5
16 files changed
+690 -650

No files matched your search

+1 -1
View File
@@ -38,7 +38,7 @@ def held_file(entry: dict, db: dict, root: Path) -> Path | None:
def held_variants(entry: dict, db: dict, root: Path, primary: Path) -> list[Path]:
"""The .variants/ copies standing in for the primary held_file chose, in
the checkout at root."""
from resolve.localfile import variant_copies
from resolve.lookup import variant_copies
hint = entry.get("path") if isinstance(entry.get("path"), str) else ""
stored = primary.relative_to(root) if primary.is_relative_to(root) else primary