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 -2
View File
@@ -6,7 +6,7 @@ import argparse
import sys
from pathlib import Path
from core import upstream
from core import forgehttp
from profiling.realign import realign_prose
from profiling.sourcepaths import record_write, refresh_source_paths
from profiling.yamledit import YamlWriteError
@@ -26,7 +26,7 @@ def run_realign(args: argparse.Namespace, selected: dict) -> None:
profile_path, args.cache_dir, args.offline, args.dry_run
):
print(f"{name}: {line}")
except upstream.UpstreamError as exc:
except forgehttp.UpstreamError as exc:
print(f"{name}: {exc}", file=sys.stderr)
failed.add(name)
except YamlWriteError as exc: