HomeSoftware Heritage

deposit.parser: Add parse_swh_reference function

Description

deposit.parser: Add parse_swh_reference function

This will ease the detection of a swhid reference or an origin within the
<swh:deposit /> xml block.

This is a first step towards adding more support to metadata-only deposit.

Related to T2537