- class swh.indexer.origin_head.OriginHeadIndexer(config=None, **kw)¶
This indexer is in charge of looking up the revision that acts as the “head” of an origin.
In git, this is usually the commit pointed to by the ‘master’ branch.
Prepare and check that the indexer is ready to run.
- USE_TOOLS = False¶
- persist_index_computations(results: Any) Dict[str, int] ¶
Do nothing. The indexer’s results are not persistent, they should only be piped to another indexer.
- index(id: str, data: None = None, **kwargs) List[Dict] ¶
Index computation for the id and associated raw data.
- scheduler: Any¶
- objstorage: Any¶