- Oct 01, 2018
-
-
Stefano Zacchiroli authored
-
- Sep 27, 2018
-
-
Antoine R. Dumont authored
This aligns the new api with the old one.
-
Antoine R. Dumont authored
-
- Sep 21, 2018
-
-
Antoine R. Dumont authored
-
- Sep 17, 2018
-
-
Antoine R. Dumont authored
-
Antoine R. Dumont authored
-
Antoine R. Dumont authored
-
Antoine R. Dumont authored
-
Antoine R. Dumont authored
Remove unused track_length parameter
-
- Sep 14, 2018
-
-
Antoine R. Dumont authored
And revert to their original behavior (returning only digest as bytes)
-
Antoine R. Dumont authored
This allows calls like: - MultiHash.from_file(file_object).digest() - MultiHash.from_path(b'foo').hexdigest() - MultiHash.from_data(b'foo').bytehexdigest()
-
Antoine R. Dumont authored
-
Antoine R. Dumont authored
-
Antoine R. Dumont authored
This is the first step to improve the hashutil module according to "the" plan [1]. In this regards, the hashutil exposes the same function as before. Internally though, they now uses a MultiHash instance. Related D410 [1] D410#7952
-
- Sep 13, 2018
-
-
Antoine R. Dumont authored
Related T421
-
Antoine R. Dumont authored
Related T421
-
- Jul 20, 2018
-
-
Antoine R. Dumont authored
Related T1152
-
- Jul 12, 2018
-
-
Stefano Zacchiroli authored
-
Stefano Zacchiroli authored
... and add an option to explicitly not follow them, if needed. Closes T1135
-
Stefano Zacchiroli authored
-
Stefano Zacchiroli authored
Closes T1134
-
Stefano Zacchiroli authored
with explicit option to hide it Closes T1133
-
- Jun 29, 2018
-
-
Antoine Lambert authored
This commit changes the swh pids representation returned by the parse_persistent_identifier function from a dict to a named tuple. Also, the 'object_type' attribute of that named tuple now contains a full name instead of an abbreviated one. Closes T1112 Closes T1125
-
- Jun 22, 2018
-
-
Antoine R. Dumont authored
-
Antoine R. Dumont authored
-
- Jun 21, 2018
-
-
Antoine R. Dumont authored
Close T1104 Close D346
-
Antoine R. Dumont authored
Related T1104
-
Antoine R. Dumont authored
Related T1104
-
Antoine R. Dumont authored
As the client of this api might not be aware of what's the right id key for a given object. Related T1104
-
Antoine R. Dumont authored
-
Antoine R. Dumont authored
Related T1104
-
Antoine R. Dumont authored
Related T1104
-
Antoine R. Dumont authored
Related T1104
-
Nicolas Dandrimont authored
Summary: We used to depend on the 'blake2s256' and 'blake2b512' names to be available in hashlib.algorithms_available. It turns out that that's specific to OpenSSL 1.1. We now try, in order: - blake2s256/blake2b512 as shipped by libssl1.1 (Python 3.5+ on Debian stretch and up) - blake2s/blake2b as built into Python 3.6+ - pyblake2 if all else fails While we're here, let's also avoid doing not-so-subtle hacks with hashlib builtins. Thanks to Alexios Zavras for the report. Test Plan: New unit tests added to check for behavior in all cases. Manually running the tests on Python 3.4 + pyblake2, Python 3.5 and Python 3.6 as shipped by Debian exercises all three cases. Reviewers: zack, #reviewers! Differential Revision: https://forge.softwareheritage.org/D347
-
- Jun 16, 2018
-
-
Stefano Zacchiroli authored
Currently only content and directory object types are supported, but more can be added in the future. Closes T1039
-
- Jun 15, 2018
-
-
Stefano Zacchiroli authored
superseded by the doc of swh.model.identifiers
-
- Jun 14, 2018
-
-
Antoine R. Dumont authored
-
- Jun 13, 2018
-
-
Stefano Zacchiroli authored
text adapted from iPRES 2017 paper about Software Heritage, section "Data Model" Closes T787
-
- Jun 05, 2018
-
-
Stefano Zacchiroli authored
-
Stefano Zacchiroli authored
Closes T1041
-