Back to the room

Pass 3 of 3 · Deep dive of PHAROSPass 1 · OverviewPass 2 · How it works

Code Observatory / function

resolve_repositories

codeintel.context.resolve_repositories

PINNED SOURCE Source and edges from the index at this commit. An execution appears only where one was recorded.

PHAROS at 975a38dMIT license

Around this symbol

Search all symbols

Loading

Calls (2)
SymbolFileResolved by
RepositoryNotFoundcontext.pysame file
repositories_matchingretrieval.pythrough an import
Called by (4)
SymbolFileResolved by
assemble_contextcontext.pysame file
_filtersrouter.pythrough an import
_repo_idsrouter.pythrough an import
build_mcp_servernative_server.pythrough an import
Inside (1)
SymbolFileResolved by
contextcontext.pysame file
codeintel.context.resolve_repositoriesbackend/app/codeintel/context.py, lines 82–88Open source
def resolve_repositories(db: Session, ref: str | None) -> list[Repository]:    if ref is None:        return []    repos = repositories_matching(db, ref)    if not repos:        raise RepositoryNotFound(f"no indexed repository matches {ref!r}")    return repos

What the index recorded

Signature
def resolve_repositories(db: Session, ref: str | None) -> list[Repository]:
File
backend/app/codeintel/context.py
Lines
82–88
Parser
python-ast
Git blob
0c4a7dd4639651a5c13142d168630e344439f22a
Call sites
2 named, 2 resolved, 0 left unlinked
Outside this subset
5 more edges reach code outside the graph shown here

Read it on GitHub at this commit