Add an extid_version field to ExtIDs
This allows distinguishing multiple potential versions of the mapping between external objects and their counterparts archived in Software Heritage, for instance when a loader has a backwards-incompatible change that should result in objects being loaded again. The field defaults to zero, in which case it's backwards-compatible with the previous implementation in terms of identifier computation.
parent
153c6e84
No related branches found
Tags v2.7.0
Showing
- swh/model/identifiers.py 10 additions, 2 deletionsswh/model/identifiers.py
- swh/model/model.py 2 additions, 0 deletionsswh/model/model.py
- swh/model/tests/swh_model_data.py 6 additions, 0 deletionsswh/model/tests/swh_model_data.py
- swh/model/tests/test_identifiers.py 23 additions, 0 deletionsswh/model/tests/test_identifiers.py
Loading