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:
Abdessamad Derraz committed 2026-11-24 06:20:52 +01:00
1 parent ce92eff0aa
commit 263a64c0e0
65 files changed
+1417 -1337

No files matched your search

+2 -1
View File
@@ -25,6 +25,7 @@ import sys
sys.path.insert(0, os.path.dirname(__file__))
from core import upstream
from core import forgehttp
from core.cli import add_repo_inputs, require_directory
from profiling.mamerefs import audit, rewrite
@@ -54,7 +55,7 @@ def main() -> None:
findings, agreed, unjudged = audit(
name, args.emulators_dir, args.cache_dir, args.offline
)
except upstream.UpstreamError as exc:
except forgehttp.UpstreamError as exc:
print(f"{name}: unreachable, {exc}", file=sys.stderr)
continue
total += len(findings)