HomeSoftware Heritage

Deduplicate resolve_revision_from across package loaders

This commit no longer exists in the repository. It may have been part of a branch which was deleted.

Description

Deduplicate resolve_revision_from across package loaders

All package loaders but deposit had logic to compute some object
from the new packageinfo, some other objects from the known artifacts,
and compare them.

This commit moves the comparison logic to the base class, and unifies
the two computation interfaces, respectively as an extid() method
on TPackageInfo and a method on the loader.

This unified object for comparison is a byte string,
which is internal to each loader for now, but a future commit
will read and write it from/to the ExtID storage instead of
computing it from the 'original_artifacts' present in
revision metadata.

Commit No Longer Exists

This commit no longer exists in the repository.