Write a script to generate qualified SWHID from swh-graph
Idea from @rdicosmo: getting the shortest path from a content to an origin is a good heuristic to get the first revision that contains that content.
It could be nice to be able to extract a fully qualified SWHID from that path.
Migrated from T4549 (view on Phabricator)