sort by:
Revision Author Date Message Commit Date
d3d0381 Updated backport on buster-swh from debian/6.0.0-1_swh1 (unstable-swh) 23 March 2022, 10:08:15 UTC
ea5622d Merge tag 'debian/6.0.0-1_swh1' into debian/buster-swh 23 March 2022, 10:08:14 UTC
2ca838b Updated debian changelog for version 6.0.0 23 March 2022, 10:06:05 UTC
c4f052b Update upstream source from tag 'debian/upstream/6.0.0' Update to upstream version '6.0.0' with Debian dir 17ac1eea3ec942603d480d32420b7e871ef71925 23 March 2022, 10:06:04 UTC
29bbf65 New upstream version 6.0.0 23 March 2022, 10:06:04 UTC
dbce3cc Add support for None as author or committer of a Revision committer=None happens on some malformed commits generated by old dgit versions ; and it is possible for author=None to happen for the same reason. 23 March 2022, 09:56:50 UTC
f6ad1ed pytest: Exclude build directory for tests discovery Due to test modules being copied in subdirectories of the build directory by setuptools, it makes pytest fail by raising ImportPathMismatchError exceptions when invoked from root directory of the module. So ignore the build folder to discover tests. 22 March 2022, 10:14:32 UTC
bc3831f Exclude name and email attributes from People comparison these fields are computed attributes and may be removed from the backend storage. Helps writing tests. 18 March 2022, 09:42:10 UTC
dc5485e Add objects with non-None raw_manifest to TEST_OBJECTS This will be used by swh.storage.backfill's tests. 16 March 2022, 11:19:11 UTC
5e42c64 Updated backport on buster-swh from debian/5.0.0-1_swh1 (unstable-swh) 16 March 2022, 09:40:22 UTC
3e73238 Merge tag 'debian/5.0.0-1_swh1' into debian/buster-swh 16 March 2022, 09:40:22 UTC
cd395b4 Updated debian changelog for version 5.0.0 16 March 2022, 09:38:26 UTC
20a889e New upstream version 5.0.0 16 March 2022, 09:38:25 UTC
bca9535 Update upstream source from tag 'debian/upstream/5.0.0' Update to upstream version '5.0.0' with Debian dir 8870039668bc3b92e27ffe99b7056d5fd5277aab 16 March 2022, 09:38:25 UTC
5359c43 Remove deprecated property 'TimestampWithTimezone.offset' 16 March 2022, 09:29:42 UTC
07c7b4f Revert "Restore 'offset' and 'negative_utc' arguments and make them optional" This reverts commit a0f5436273ef6f5b62a388ae131ed5afa7287d00. This means this commit removes the 'offset' and 'negative_utc' arguments. It also removes the 'negative_utc' attribute (which is not used anymore), but keeps an 'offset' property, which is an alias to 'offset_minutes()'. This is only to keep this commit readable; the next commit will remove this alias. 16 March 2022, 09:29:42 UTC
118c8a4 docs: Explain we prefer dir SWHIDs over rev/rel. 10 February 2022, 16:14:04 UTC
bd38e6f pre-commit: Bump hooks and add new one to check commit message spelling To install the new hook: $ pre-commit install -t commit-msg 10 February 2022, 16:02:56 UTC
839e0dc Add missing __slots__ to HashableObjectWithManifest This should slightly reduce the memory used by dir/rev/rel objects 10 February 2022, 11:13:30 UTC
a0674ad Fix crash in check_entries. 26 January 2022, 11:16:50 UTC
7364adc Fix f-string 26 January 2022, 11:07:46 UTC
de98ff8 Updated backport on buster-swh from debian/4.4.0-1_swh1 (unstable-swh) 21 January 2022, 13:14:30 UTC
94d8f70 Merge tag 'debian/4.4.0-1_swh1' into debian/buster-swh 21 January 2022, 13:14:29 UTC
2761661 Updated debian changelog for version 4.4.0 21 January 2022, 13:12:26 UTC
c1a4d03 Update upstream source from tag 'debian/upstream/4.4.0' Update to upstream version '4.4.0' with Debian dir 69896a801d8d62d1db96800e2cdeaee7cbdf1282 21 January 2022, 13:12:25 UTC
be4deb6 New upstream version 4.4.0 21 January 2022, 13:12:24 UTC
a654060 Add method 'TimestampWithTimezone.offset_minutes' A future commit will remove the 'offset' attribute, and rename 'offset_bytes' to 'offset'. Modules using the `.offset` attribute will need to switch to this new method to keep working. 21 January 2022, 11:53:12 UTC
f43f9ac model: Add support for more edge cases in _parse_offset_bytes 17 January 2022, 16:33:38 UTC
e1c3fe8 Fix extlink errors Sphinx >=4.4.0 raises warnings (which are errors for us) when using warnings instead of an extlink role defined in the configuration 17 January 2022, 16:26:17 UTC
8a8dd16 Updated backport on buster-swh from debian/4.3.0-1_swh1 (unstable-swh) 14 January 2022, 14:15:55 UTC
ab834e8 Merge tag 'debian/4.3.0-1_swh1' into debian/buster-swh 14 January 2022, 14:15:54 UTC
7ee5d86 Updated debian changelog for version 4.3.0 14 January 2022, 14:13:48 UTC
99ab9a7 Update upstream source from tag 'debian/upstream/4.3.0' Update to upstream version '4.3.0' with Debian dir 8cc0af2351d2b1b48982a7411ee9ee13efad8e53 14 January 2022, 14:13:47 UTC
db855bf New upstream version 4.3.0 14 January 2022, 14:13:46 UTC
a0f5436 Restore 'offset' and 'negative_utc' arguments and make them optional This allows keeping compatibility with existing users of the TimestampWithTimezone constructor 14 January 2022, 12:44:59 UTC
be894c6 TimestampWithTimezone: Make 'offset_bytes' required and remove 'negative_utc'. 'offset' becomes a property instead of an attribute and constructor argument. This also removes both from the output of `.to_dict()`. This is step 6 of https://forge.softwareheritage.org/T3752 This will break packages that still use the constructor directly, ie. swh-storage and swh-loader-git (and tests of swh-loader-core and swh-loader-svn) 13 January 2022, 11:17:48 UTC
dbf185c Fix TimestampWithTimezone.from_dict() on datetimes before 1970 with non-integer seconds 12 January 2022, 13:41:38 UTC
94b00d6 docs: Add anchors to important sections of persistent-identifiers.rst swh-deposit needs to link to some of them. 11 January 2022, 13:27:05 UTC
c5f706b Updated backport on buster-swh from debian/4.2.0-1_swh1 (unstable-swh) 10 January 2022, 15:01:31 UTC
3df0403 Merge tag 'debian/4.2.0-1_swh1' into debian/buster-swh 10 January 2022, 15:01:31 UTC
7e48730 Updated debian changelog for version 4.2.0 10 January 2022, 14:59:18 UTC
a8806fb New upstream version 4.2.0 10 January 2022, 14:59:17 UTC
d361512 Update upstream source from tag 'debian/upstream/4.2.0' Update to upstream version '4.2.0' with Debian dir 7f3220a0c36f412bcffe11641f3af52abc637717 10 January 2022, 14:59:17 UTC
56460e1 git_objects: Use raw offset_bytes to format dates, and remove format_offset() This is needed when recomputing the manifest of git objects with weird offsets. 07 January 2022, 12:57:52 UTC
64af6d1 Updated backport on buster-swh from debian/4.1.0-1_swh1 (unstable-swh) 22 December 2021, 15:03:43 UTC
354b40c Merge tag 'debian/4.1.0-1_swh1' into debian/buster-swh 22 December 2021, 15:03:43 UTC
f1010fe Updated debian changelog for version 4.1.0 22 December 2021, 15:01:41 UTC
e14e9ae Update upstream source from tag 'debian/upstream/4.1.0' Update to upstream version '4.1.0' with Debian dir a0f59d4b85b6e222399e244f593cd4dc5d89a2f6 22 December 2021, 15:01:40 UTC
a0b08bc New upstream version 4.1.0 22 December 2021, 15:01:39 UTC
c6ec4d8 hashutil: drop all pre-3.6 blake2 workarounds blake2s and blake2b have been provided by the stdlib hashlib since Python 3.6, and we declare 3.7 as minimum Python version supported. 22 December 2021, 14:46:01 UTC
3518f65 Updated debian changelog for version 4.0.0 22 December 2021, 12:28:54 UTC
4877e83 Update upstream source from tag 'debian/upstream/4.0.0' Update to upstream version '4.0.0' with Debian dir 0143bffc8b14df982ce96dfc4ee06b615eeff598 22 December 2021, 12:28:53 UTC
948bb65 New upstream version 4.0.0 22 December 2021, 12:28:53 UTC
9d517c1 hypothesis_strategies: Generate raw_manifest 22 December 2021, 12:20:53 UTC
2abbf73 model: Exclude 'raw_manifest' from dictionaries when it is null 1. Most objects do not need it so it's a waste of space 2. This means we just extend the existing format (some objects will have that key in their dict) instead of changing it (retroactively adding it to all objects) 22 December 2021, 12:20:52 UTC
f6144a1 model: Add a raw_manifest attribute This will be used to store the original manifest of 'weird' git objects, when we cannot reasonably represent them otherwise. 22 December 2021, 12:20:52 UTC
9e1e14a data-model: Remove mention of modification timestamps We don't store those 21 December 2021, 14:15:18 UTC
e342397 hypothesis_strategies: Generate only consistent directory entry permissions. 21 December 2021, 13:38:47 UTC
9d1d4a3 docs: Update the data model description Revision and release do not generally allow 'arbitrary' metadata; and it was missing ExtIDs and REMD 17 December 2021, 13:56:40 UTC
abb089d Pin mypy and drop type annotations which makes mypy unhappy This also drops spurious copyright headers to those files if present. Related to T3812 16 December 2021, 14:56:37 UTC
9b21d2d test_model: Fix compatibility with pytest-xdist Using .now() produces data that differs between xdist processes, as files are imported after forking, and xdist requires consistent data across processes. 15 December 2021, 13:01:20 UTC
3b15d22 Updated debian changelog for version 3.2.0 15 December 2021, 12:39:37 UTC
0c138b3 Update upstream source from tag 'debian/upstream/3.2.0' Update to upstream version '3.2.0' with Debian dir 567243905bd218727970a1bcb2b8a702375619d1 15 December 2021, 12:39:36 UTC
3a41bdf New upstream version 3.2.0 15 December 2021, 12:39:35 UTC
59ed64b model: Add a check() method to model objects It calls attr.validate() (which calls the validators), and recomputes the hash of HashableObject instances. A future commit will also make it check the raw_manifest attribute when relevant 08 December 2021, 15:24:44 UTC
5eb6539 model: Deduplicate calls to hashlib. It's just simpler this way 08 December 2021, 15:20:56 UTC
2d0105b model: Add support for None to the type checker For the sake of completeness (a future commit may depend on it). 08 December 2021, 15:17:40 UTC
c322904 Add attribute TimestampWithTimezone.offset_bytes, to store raw Git offsets For now it is filled from 'offset' and 'negative_utc', but it will replace them in a future commit. This is to simplify and add support for more 'weird' offsets we do not currently support. 08 December 2021, 14:46:29 UTC
52d6e0a hypothesis_strategies: Ensure to generate valid directory entry name (again) 08 December 2021, 14:46:09 UTC
4803d78 Revert "hypothesis_strategies: Ensure to generate valid directory entry name" This reverts commit c525484e473720ffcde89534d3ba89093bc8b016. 08 December 2021, 14:46:09 UTC
f6e0a28 from_disk: Implement Directory.__contains__ It enables to easily check if a path exists from a root directory. 08 December 2021, 13:42:02 UTC
c525484 hypothesis_strategies: Ensure to generate valid directory entry name Since rDMOD8d96dfedee34203a4118e48a6208ee507511590b, directory entry names are validated in DirectoryEntry model and thus must not contain any slash characters. So update directory_entries_d hypothesis strategy to ensure such names are generated to avoid flaky tests. 07 December 2021, 10:34:39 UTC
b9017f4 Updated backport on buster-swh from debian/3.1.0-1_swh1 (unstable-swh) 06 December 2021, 18:55:43 UTC
6345dc5 Merge tag 'debian/3.1.0-1_swh1' into debian/buster-swh 06 December 2021, 18:55:43 UTC
54d2168 Updated debian changelog for version 3.1.0 06 December 2021, 18:51:48 UTC
25751ff Update upstream source from tag 'debian/upstream/3.1.0' Update to upstream version '3.1.0' with Debian dir 0d4cc11bcbd2ead6cb1d1f7d76b4b2bd219a2623 06 December 2021, 18:51:47 UTC
af9cd2c New upstream version 3.1.0 06 December 2021, 18:51:46 UTC
37364c2 hashutil: Add support for md5 sum Enable to compute md5 sum through the hashutil.MultiHash class. Nevertheless, md5 is not put in DEFAULT_ALGORITHMS set and must be explicitely requested by client code. Related to T2400 06 December 2021, 18:26:31 UTC
243520d test_hashutil: Port tests from unittest to pytest 06 December 2021, 18:26:31 UTC
8d96dfe model: Validate Directory entry names I don't know any instance of these, but there is no harm in checking them. 01 December 2021, 17:20:47 UTC
2ffe5db Give model and swhid objects a nicer repr() 1. hashes are now repr()ed as `hash_to_bytes("1234...")` instead of b"\x12\x34..."` 2. SWHID objects are now repr()ed as `CoreSWHID.from_string('swh:1:...:1234...')` instead of `CoreSWHID(scheme='swh', version='1', object_type=..., object_id=b'\x12\x34')` 3. enums are now repr()ed as `MyEnum.NAME` instead of "<MyEnum.NAME: 'value'>` Thanks to these three changes, using repr() on a model object now prints a string that can be pasted directly in a `.py` file to write a new test case. 05 November 2021, 10:28:53 UTC
916627e type_validator: Re-allow subclasses The previous replaced attrs-strict's type validator with our own, stricter and faster, validator. However, the strictness can be a burden in other packages; for example, swh-storage tests rely on it to insert dummy data that raises exception when accessed, and it would be hard to do while using the exact expected type. This commit reverts the strict behavior, but keeps the performance optimization, by always checking with type equality, but in case type equality fails (which would raise an error before this commit), it gives the value a 'second chance', by trying isinstance. This means that, outside tests, isinstance should not be used at all, or very rarely. 01 October 2021, 12:31:41 UTC
309b089 Updated backport on buster-swh from debian/3.0.0-1_swh1 (unstable-swh) 28 September 2021, 14:06:47 UTC
9f90bd5 Merge tag 'debian/3.0.0-1_swh1' into debian/buster-swh 28 September 2021, 14:06:44 UTC
d2d6441 Updated debian changelog for version 3.0.0 28 September 2021, 14:05:19 UTC
86b6fd0 Update upstream source from tag 'debian/upstream/3.0.0' Update to upstream version '3.0.0' with Debian dir bb9cc036ee04c90a51f9c99a8ecabec167da2dc1 28 September 2021, 14:05:18 UTC
99eb654 New upstream version 3.0.0 28 September 2021, 14:05:17 UTC
734b081 model: Replace attrs-strict with stricter validation This reimplements attrs_strict.type_validator(), using type equality instead of isinstance. This makes my checksum validation script (that mostly just instantiates model objects, computes a checksum, then discard) run twice as fast. 28 September 2021, 09:51:15 UTC
e30eb7d persistent-identifiers.rst: Update references to manifest formats 24 September 2021, 10:08:47 UTC
7034b16 Add module-level docstrings. 23 September 2021, 18:22:32 UTC
4968b74 Move SWHID-related tests to test_swhids.py For consistency, as the classes are now in swhids.py 23 September 2021, 18:01:09 UTC
d5fd652 git_objects: Fix type annotations to accept the old dicts + raise warnings 23 September 2021, 15:13:38 UTC
f56becc Deprecate identifiers.py 1. Add a warning 2. Move identifier/manifest documentation to git_objects.py 3. Remove all imports of that module. Motivation: * SWHID classes were moved to swhids.py * manifest computation functions were moved to git_objects.py * Only reexports and trivial wrappers of model.py remain 23 September 2021, 14:52:31 UTC
df73e74 test_identifiers.py: Make sha1_git literals more consistent. 23 September 2021, 12:42:26 UTC
510df60 Remove identifier_to_bytes and identifier_to_hex They are not used anywhere. 23 September 2021, 12:42:26 UTC
9e8a547 Move manifest computation functions from identifiers.py to git_objects.py Since they are used by the vault for non-identifier-related stuff, I think it makes sense to move them to a new module. identifiers.py is now an empty shell, as all its features were moved to other modules and it only contains reexports and backward-compat functions. Therefore, it should be considered deprecated from now on. 23 September 2021, 12:42:26 UTC
57ae405 Refactor identifiers & model to make *_git_object() functions work on model classes instead of dicts Since we now use these classes everywhere, computing hashes required using to_dict() just to compute identifiers, which can be a performance bottleneck in code computing many checksums. 23 September 2021, 12:42:10 UTC
6a72f88 test_identifiers.py: Fix/update malformed data dicts A future commit will make identifier computation use the attrs classes, which are strict about what they accept. 23 September 2021, 09:08:36 UTC
9ec6832 Move SWHID classes and functions from identifiers.py to swhids.py identifiers.py initially worked only on bare sha1_git. I chose to add the SWHID classes in that module because of the name, but the SWHID code didn't actually interact with the other functions in the module, so it now feels out of place to me. 23 September 2021, 09:08:36 UTC
0dd33cd Add bazaar as supported revision type We're about to have a Bazaar loader 23 September 2021, 08:56:38 UTC
back to top