mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-12-03 14:58:51 -06:00
refactor: split core.upstream by subject
HTTP to the forges moves to core.forgehttp, comparisons, trees and clone history to core.upstreamtree. core.upstream keeps repositories, the cache and revisions.
This commit is contained in:
1 parent
ce92eff0aa
commit
263a64c0e0
65 files changed
+1417
-1337
No files matched your search
@@ -5,6 +5,7 @@ from __future__ import annotations
|
||||
from pathlib import Path
|
||||
|
||||
from core import upstream
|
||||
from core import upstreamtree
|
||||
from model.registry import load_platform_registry
|
||||
from model.romfolders import load_sources, row_sources, sources_dir
|
||||
from model.sourcerevision import scraped_revision
|
||||
@@ -115,6 +116,6 @@ def _romfolder_upstream(
|
||||
return Finding("romfolders", subject, UNKNOWN, local=pin, detail="branch head unavailable")
|
||||
if head == commit:
|
||||
return Finding("romfolders", subject, OK, local=pin, detail="branch head")
|
||||
counts = upstream.ancestry(repo, commit, head, cache_dir)
|
||||
counts = upstreamtree.ancestry(repo, commit, head, cache_dir)
|
||||
behind = f"{counts[0]} commits behind the branch head" if counts else "the branch head moved"
|
||||
return Finding("romfolders", subject, STALE, local=pin, remote=head[:12], detail=behind)
|
||||
Reference in new issue
Block a user