- Oct 23, 2020
-
-
Antoine Cezar authored
-
- Sep 17, 2020
-
-
Antoine Lambert authored
Related to T2610
-
- Jul 02, 2020
-
-
Antoine R. Dumont authored
-
Antoine R. Dumont authored
-
- Jun 24, 2020
-
-
David Douard authored
this aims at preventing constant usage of isinstance() based dispatch code when writing generic code handling model entities. For example, the "object_type" argument of JournalWriter.write_addition() has become superflous now we only pass model entities, etc. This idea comes olasd's reading of mypy doc: https://mypy.readthedocs.io/en/latest/literal_types.html#tagged-unions This comes with a refactoring of from_dict.DiskBackedContent to make it *not* inherit from model.Content: object_type being Final, it cannot be overloaded.
-
- Apr 08, 2020
-
-
David Douard authored
- blackify all the python files, - enable black in pre-commit, - add a black tox environment.
-
Daniele Serafini authored
-
- Feb 24, 2020
-
-
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
- Sep 20, 2019
-
-
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
-
- Oct 04, 2017
-
-
Nicolas Dandrimont authored
-
Nicolas Dandrimont authored
-
Nicolas Dandrimont authored
This allows loaders to lazily load data: you can read from disk and transfer only the contents that are really missing.
-
- Oct 03, 2017
-
-
Nicolas Dandrimont authored
Summary: This module is a reimplementation of swh.model.git, with the underlying goal of replacing it and fixing T709 in the process. Reviewers: #reviewers! Differential Revision: https://forge.softwareheritage.org/D248
-