HomeSoftware Heritage

utils: Raise ValueError when external definition could not be parsed

Description

utils: Raise ValueError when external definition could not be parsed

Such case can happen when an external definition is malformed.

Previously, the parsed malformed external was added to the directory state
with an empty external URL which could lead to unexpected side effects like
removing all previously exported valid externals.

Details

Provenance
anlambertAuthored on Dec 6 2022, 4:37 PM
anlambertPushed on Dec 8 2022, 5:20 PM
Differential Revision
D8942: utils: Raise ValueError when external definition could not be parsed
Parents
rDLDSVN301b31e95099: replay: Simplify FileEditor implementation
Branches
Unknown
Tags
Unknown
Build Status
Buildable 33193
Build 52040: test-and-buildJenkins console · Jenkins