mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-12-02 14:28:54 -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
@@ -12,6 +12,7 @@ from pathlib import Path
|
||||
import yaml
|
||||
|
||||
from core import upstream
|
||||
from core import upstreamtree
|
||||
from model.sourceref import RefPart
|
||||
from profiling.anchoring import anchor_block
|
||||
from profiling.attribution import owner_order
|
||||
@@ -153,7 +154,7 @@ def _resolve_at(
|
||||
if lines is not None:
|
||||
return "found", (candidate, lines)
|
||||
if "/" not in path:
|
||||
tree, truncated = upstream.list_tree(repo, sha, cache_dir, offline)
|
||||
tree, truncated = upstreamtree.list_tree(repo, sha, cache_dir, offline)
|
||||
matches = [p for p in tree or [] if posixpath.basename(p) == path]
|
||||
if len(matches) == 1:
|
||||
lines = upstream.fetch_file(
|
||||
|
||||
Reference in new issue
Block a user