- Mar 12, 2020
-
-
David Douard authored
These are expected to be bytes, not str.
-
- Mar 11, 2020
-
-
David Douard authored
this does not work in the general case since there is no (recursive) convertion of objects used as model object initialization. We can only check when using the from_dict() factory.
-
David Douard authored
for better clarity on the code author's intention.
-
David Douard authored
it was still here for bw-compat but should not be necessary any more.
-
David Douard authored
this function does not need to be a local function of the to_dict namespace.
-
- Mar 04, 2020
-
- Mar 02, 2020
-
-
Nicolas Dandrimont authored
This generates more realistic contents and avoids spurious HashCollisions when generating a set of objects using these hypothesis strategies, at the cost of slightly worse "boundary checking" (i.e. we won't check contents with a length > 4096 bytes).
-
Nicolas Dandrimont authored
This lets us generate Content objects directly from a bytestring, with the proper set of hashes auto-generated from the contents.
-
- Feb 27, 2020
-
-
Nicolas Dandrimont authored
-
Antoine R. Dumont authored
-
vlorentz authored
Will be used by loaders.
-
vlorentz authored
-
- Feb 24, 2020
-
-
vlorentz authored
It just makes more sense that way. eg. before this change, all leafs would be equal to each other.
-
vlorentz authored
They will be used by loaders, so they can deal only with model objects, instead of having to do the same conversion themselves. This removes the `data` and `save_path` arguments of `from_file` and `from_disk`, as data loading is always deferred from now on. To access it, users are now expected to either open the data files themselves, or us `.to_model().with_data()`.
-
- Feb 21, 2020
-
-
vlorentz authored
Regular files were created, as the 'mode' argument of os.mknod was missing. However, creating devices requires root; so we can't reasonably do that in tests. Instead, we're using /dev/null instead of creating one. And while we're at it, let's also use /dev/zero (which, if not handled properly, will result in an infinite read).
-
vlorentz authored
It should be cheap enough to do it, and it makes tests easier.
-
vlorentz authored
-
vlorentz authored
It will be useful to loaders, as they currently load the entire content in memory before deciding to skip it.
-
- Feb 18, 2020
-
-
Nicolas Dandrimont authored
This allows the `swh identify` command to work again. Close T2288
-
- Feb 14, 2020
-
-
vlorentz authored
Can be useful to deduplicate code in swh-storage.
-
- Feb 07, 2020
-
-
vlorentz authored
The current postgresql model refuses NULL values.
- Feb 05, 2020
-
- Jan 30, 2020
-
-
Antoine R. Dumont authored
-
Antoine R. Dumont authored
Related to P589
-
- Jan 29, 2020
-
-
David Douard authored
This allows for example to type: curl -s https://archive.softwareheritage.org/browse/content/sha1_git:64582b78792cd6c2d67d35da5a11bb80886a6409/raw/ | swh identify swh:1:cnt:64582b78792cd6c2d67d35da5a11bb80886a6409 -
-
- Jan 17, 2020
-
-
Antoine Lambert authored
Related to T2188
-
- Dec 02, 2019
-
-
Antoine Lambert authored
-
- Nov 29, 2019
-
-
Antoine Lambert authored
Add support to automatically compute identifier in the following object models: Directory, Release, Revision, Snapshot. If the identifier is not provided as parameter, it will be computed when the model is initialized.
-
Antoine Lambert authored
-
- Nov 21, 2019
-
-
David Douard authored
-
Nicolas Dandrimont authored
-
Nicolas Dandrimont authored
Allows us to call tests on things other than python3, with the same settings.
-
- Nov 20, 2019
-
-
Nicolas Dandrimont authored
-
Stefano Zacchiroli authored
they will remain for internal use only, so should not be mentioned in this public spec this reverts the documentation part of 67fade5f
-
- Oct 30, 2019
-
- Oct 29, 2019
-
-
David Douard authored
currently provides mainly 2 generators: - gen_origins() - gen_contents()
-
David Douard authored
we do not really need them to be mutable, plus we gain their instances now being hashable, so we can add them in set() for example.
-