https://github.com/SoftwareHeritage/swh-model
'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)
- HEAD
- refs/heads/debian/buster-swh
- refs/heads/debian/stretch-swh
- refs/heads/debian/unstable-swh
- refs/heads/debian/upstream
- refs/heads/master
- refs/heads/pristine-tar
- refs/tags/v0.0.31
- refs/tags/v0.0.32
- refs/tags/v0.0.33
- refs/tags/v0.0.34
- refs/tags/v0.0.36
- refs/tags/v0.0.37
- refs/tags/v0.0.38
- refs/tags/v0.0.44
- refs/tags/v2.6.4
- be894c66c88b45f621529df011e1dc5f1de2bd8e
- v6.4.1
- v6.4.0
- v6.3.1
- v6.3.0
- v6.2.0
- v6.1.0
- v6.0.1
- v6.0.0
- v5.0.0
- v4.4.0
- v4.3.0
- v4.2.0
- v4.1.0
- v4.0.0
- v3.2.0
- v3.1.0
- v3.0.0
- v2.9.0
- v2.8.0
- v2.7.0
- v2.6.3
- v2.6.2
- v2.6.1
- v2.6.0
- v2.5.1
- v2.5.0
- v2.4.2
- v2.4.1
- v2.4.0
- v2.3.0
- v2.2.0
- v2.1.0
- v2.0.0
- v1.0.1
- v1.0.0
- v0.9.0
- v0.8.0
- v0.7.3
- v0.7.2
- v0.7.1
- v0.7.0
- v0.6.7
- v0.6.6
- v0.6.5
- v0.6.4
- v0.6.3
- v0.6.2
- v0.6.1
- v0.6.0
- v0.5.0
- v0.4.0
- v0.3.8
- v0.3.7
- v0.3.6
- v0.3.5
- v0.3.4
- v0.3.3
- v0.3.2
- v0.3.1
- v0.3.0
- v0.2.2
- v0.2.1
- v0.2.0
- v0.13.0
- v0.12.0
- v0.11.0
- v0.10.0
- v0.1.1
- v0.1.0
- v0.0.9
- v0.0.8
- v0.0.7
- v0.0.69
- v0.0.68
- v0.0.67
- v0.0.66
- v0.0.65
- v0.0.64
- v0.0.63
- v0.0.62
- v0.0.61
- v0.0.60
- v0.0.6
- v0.0.59
- v0.0.58
- v0.0.57
- v0.0.56
- v0.0.55
- v0.0.54
- v0.0.53
- v0.0.52
- v0.0.51
- v0.0.50
- v0.0.5
- v0.0.49
- v0.0.48
- v0.0.47
- v0.0.46
- v0.0.45
- v0.0.43
- v0.0.42
- v0.0.41
- v0.0.40
- v0.0.4
- v0.0.39
- v0.0.35
- v0.0.30
- v0.0.3
- v0.0.29
- v0.0.28
- v0.0.27
- v0.0.26
- v0.0.25
- v0.0.24
- v0.0.23
- v0.0.22
- v0.0.21
- v0.0.20
- v0.0.2
- v0.0.19
- v0.0.18
- v0.0.17
- v0.0.16
- v0.0.15
- v0.0.14
- v0.0.13
- v0.0.12
- v0.0.11
- v0.0.10
- v0.0.1
- debian/upstream/6.4.1
- debian/upstream/6.4.0
- debian/upstream/6.3.1
- debian/upstream/6.3.0
- debian/upstream/6.2.0
- debian/upstream/6.1.0
- debian/upstream/6.0.1
- debian/upstream/6.0.0
- debian/upstream/5.0.0
- debian/upstream/4.4.0
- debian/upstream/4.3.0
- debian/upstream/4.2.0
- debian/upstream/4.1.0
- debian/upstream/4.0.0
- debian/upstream/3.2.0
- debian/upstream/3.1.0
- debian/upstream/3.0.0
- debian/upstream/2.9.0
- debian/upstream/2.8.0
- debian/upstream/2.7.0
- debian/upstream/2.6.4
- debian/upstream/2.6.3
- debian/upstream/2.6.2
- debian/upstream/2.6.1
- debian/upstream/2.6.0
- debian/upstream/2.5.1
- debian/upstream/2.5.0
- debian/upstream/2.4.2
- debian/upstream/2.4.1
- debian/upstream/2.4.0
- debian/upstream/2.3.0
- debian/upstream/2.2.0
- debian/upstream/2.1.0
- debian/upstream/2.0.0
- debian/upstream/1.0.1
- debian/upstream/1.0.0
- debian/upstream/0.9.0
- debian/upstream/0.8.0
- debian/upstream/0.7.3
- debian/upstream/0.7.2
- debian/upstream/0.7.1
- debian/upstream/0.7.0
- debian/upstream/0.6.7
- debian/upstream/0.6.6
- debian/upstream/0.6.5
- debian/upstream/0.6.4
- debian/upstream/0.6.1
- debian/upstream/0.6.0
- debian/upstream/0.5.0
- debian/upstream/0.4.0
- debian/upstream/0.3.8
- debian/upstream/0.3.7
- debian/upstream/0.3.6
- debian/upstream/0.3.5
- debian/upstream/0.3.4
- debian/upstream/0.3.3
- debian/upstream/0.3.2
- debian/upstream/0.3.1
- debian/upstream/0.3.0
- debian/upstream/0.2.2
- debian/upstream/0.2.1
- debian/upstream/0.2.0
- debian/upstream/0.13.0
- debian/upstream/0.12.0
- debian/upstream/0.11.0
- debian/upstream/0.10.0
- debian/upstream/0.1.1
- debian/upstream/0.1.0
- debian/upstream/0.0.9
- debian/upstream/0.0.8
- debian/upstream/0.0.7
- debian/upstream/0.0.69
- debian/upstream/0.0.68
- debian/upstream/0.0.67
- debian/upstream/0.0.66
- debian/upstream/0.0.65
- debian/upstream/0.0.64
- debian/upstream/0.0.63
- debian/upstream/0.0.62
- debian/upstream/0.0.60
- debian/upstream/0.0.6
- debian/upstream/0.0.59
- debian/upstream/0.0.57
- debian/upstream/0.0.56
- debian/upstream/0.0.55
- debian/upstream/0.0.54
- debian/upstream/0.0.53
- debian/upstream/0.0.52
- debian/upstream/0.0.51
- debian/upstream/0.0.50
- debian/upstream/0.0.5
- debian/upstream/0.0.49
- debian/upstream/0.0.48
- debian/upstream/0.0.47
- debian/upstream/0.0.46
- debian/upstream/0.0.45
- debian/upstream/0.0.44
- debian/upstream/0.0.43
- debian/upstream/0.0.42
- debian/upstream/0.0.41
- debian/upstream/0.0.40
- debian/upstream/0.0.4
- debian/upstream/0.0.39
- debian/upstream/0.0.38
- debian/upstream/0.0.37
- debian/upstream/0.0.36
- debian/upstream/0.0.35
- debian/upstream/0.0.34
- debian/upstream/0.0.33
- debian/upstream/0.0.32
- debian/upstream/0.0.31
- debian/upstream/0.0.30
- debian/upstream/0.0.3
- debian/upstream/0.0.29
- debian/upstream/0.0.28
- debian/upstream/0.0.27
- debian/upstream/0.0.26
- debian/upstream/0.0.25
- debian/upstream/0.0.24
- debian/upstream/0.0.23
- debian/upstream/0.0.22
- debian/upstream/0.0.21
- debian/upstream/0.0.20
- debian/upstream/0.0.2
- debian/upstream/0.0.19
- debian/upstream/0.0.18
- debian/upstream/0.0.17
- debian/upstream/0.0.16
- debian/upstream/0.0.15
- debian/upstream/0.0.14
- debian/upstream/0.0.13
- debian/upstream/0.0.12
- debian/upstream/0.0.11
- debian/upstream/0.0.10
- debian/6.4.1-1_swh1_bpo10+1
- debian/6.4.1-1_swh1
- debian/6.4.0-1_swh1_bpo10+1
- debian/6.4.0-1_swh1
- debian/6.3.1-1_swh1_bpo10+1
- debian/6.3.1-1_swh1
- debian/6.3.0-1_swh1_bpo10+1
- debian/6.3.0-1_swh1
- debian/6.2.0-1_swh1_bpo10+1
- debian/6.2.0-1_swh1
- debian/6.1.0-1_swh1_bpo10+1
- debian/6.1.0-1_swh1
- debian/6.0.1-1_swh1_bpo10+1
- debian/6.0.1-1_swh1
- debian/6.0.0-1_swh1_bpo10+1
- debian/6.0.0-1_swh1
- debian/5.0.0-1_swh1_bpo10+1
- debian/5.0.0-1_swh1
- debian/4.4.0-1_swh1_bpo10+1
- debian/4.4.0-1_swh1
- debian/4.3.0-1_swh1_bpo10+1
- debian/4.3.0-1_swh1
- debian/4.2.0-1_swh1_bpo10+1
- debian/4.2.0-1_swh1
- debian/4.1.0-1_swh1_bpo10+1
- debian/4.1.0-1_swh1
- debian/4.0.0-1_swh1
- debian/3.2.0-1_swh1
- debian/3.1.0-1_swh1_bpo10+1
- debian/3.1.0-1_swh1
- debian/3.0.0-1_swh1_bpo10+1
- debian/3.0.0-1_swh1
- debian/2.9.0-1_swh1_bpo10+1
- debian/2.9.0-1_swh1
- debian/2.8.0-1_swh1_bpo10+1
- debian/2.8.0-1_swh1
- debian/2.7.0-1_swh1_bpo10+1
- debian/2.7.0-1_swh1
- debian/2.6.4-1_swh1_bpo10+1
- debian/2.6.4-1_swh1
- debian/2.6.3-1_swh1_bpo10+1
- debian/2.6.3-1_swh1
- debian/2.6.2-1_swh1_bpo10+1
- debian/2.6.2-1_swh1
- debian/2.6.1-1_swh1_bpo10+1
- debian/2.6.1-1_swh1
- debian/2.6.0-1_swh1_bpo10+1
- debian/2.6.0-1_swh1
- debian/2.5.1-1_swh1_bpo10+1
- debian/2.5.1-1_swh1
- debian/2.5.0-1_swh1_bpo10+1
- debian/2.5.0-1_swh1
- debian/2.4.2-1_swh1_bpo10+1
- debian/2.4.2-1_swh1
- debian/2.4.1-1_swh1_bpo10+1
- debian/2.4.1-1_swh1
- debian/2.4.0-1_swh1_bpo10+1
- debian/2.4.0-1_swh1
- debian/2.3.0-1_swh1_bpo10+1
- debian/2.3.0-1_swh1
- debian/2.2.0-1_swh1_bpo10+1
- debian/2.2.0-1_swh1
- debian/2.1.0-1_swh1_bpo10+1
- debian/2.1.0-1_swh1
- debian/2.0.0-1_swh1_bpo10+1
- debian/2.0.0-1_swh1
- debian/1.0.1-1_swh1_bpo10+1
- debian/1.0.1-1_swh1
- debian/1.0.0-1_swh1_bpo10+1
- debian/1.0.0-1_swh1
- debian/0.9.0-1_swh1_bpo10+1
- debian/0.9.0-1_swh1
- debian/0.8.0-1_swh1_bpo10+1
- debian/0.8.0-1_swh1
- debian/0.7.3-1_swh1_bpo10+1
- debian/0.7.3-1_swh1
- debian/0.7.2-1_swh1_bpo10+1
- debian/0.7.2-1_swh1
- debian/0.7.1-1_swh1_bpo10+1
- debian/0.7.1-1_swh1
- debian/0.7.0-1_swh1_bpo10+1
- debian/0.7.0-1_swh1
- debian/0.6.7-3_swh1_bpo10+1
- debian/0.6.7-3_swh1
- debian/0.6.7-2_swh1
- debian/0.6.7-1_swh1
- debian/0.6.6-1_swh1_bpo10+1
- debian/0.6.6-1_swh1
- debian/0.6.5-1_swh1_bpo10+1
- debian/0.6.5-1_swh1
- debian/0.6.4-1_swh1_bpo10+1
- debian/0.6.4-1_swh1
- debian/0.6.1-1_swh1_bpo10+1
- debian/0.6.1-1_swh1
- debian/0.6.0-1_swh1_bpo10+1
- debian/0.6.0-1_swh1
- debian/0.5.0-1_swh1_bpo10+1
- debian/0.5.0-1_swh1
- debian/0.4.0-1_swh1_bpo10+1
- debian/0.4.0-1_swh1
- debian/0.3.8-1_swh1_bpo10+1
- debian/0.3.8-1_swh1
- debian/0.3.7-1_swh1_bpo10+1
- debian/0.3.7-1_swh1
- debian/0.3.6-1_swh1_bpo10+1
- debian/0.3.6-1_swh1
- debian/0.3.5-2_swh1_bpo10+1
- debian/0.3.5-2_swh1
- debian/0.3.5-1_swh1
- debian/0.3.4-1_swh1_bpo10+1
- debian/0.3.4-1_swh1
- debian/0.3.3-1_swh1_bpo10+1
- debian/0.3.3-1_swh1
- debian/0.3.2-1_swh1_bpo10+1
- debian/0.3.2-1_swh1
- debian/0.3.1-1_swh1_bpo10+1
- debian/0.3.1-1_swh1
- debian/0.3.0-1_swh1_bpo10+1
- debian/0.3.0-1_swh1
- debian/0.2.2-1_swh1_bpo10+1
- debian/0.2.2-1_swh1
- debian/0.2.1-1_swh1_bpo10+1
- debian/0.2.1-1_swh1
- debian/0.2.0-1_swh1_bpo10+1
- debian/0.2.0-1_swh1
- debian/0.13.0-1_swh1_bpo10+1
- debian/0.13.0-1_swh1
- debian/0.12.0-1_swh1_bpo10+1
- debian/0.12.0-1_swh1
- debian/0.11.0-1_swh1_bpo10+1
- debian/0.11.0-1_swh1
- debian/0.10.0-1_swh1_bpo10+1
- debian/0.10.0-1_swh1
- debian/0.1.1-1_swh1_bpo10+1
- debian/0.1.1-1_swh1
- debian/0.1.0-1_swh1_bpo10+1
- debian/0.1.0-1_swh1
- debian/0.0.69-1_swh1_bpo10+1
- debian/0.0.69-1_swh1
- debian/0.0.68-1_swh1_bpo10+1
- debian/0.0.68-1_swh1
- debian/0.0.67-1_swh1_bpo10+1
- debian/0.0.67-1_swh1
- debian/0.0.66-1_swh1_bpo10+1
- debian/0.0.66-1_swh1
- debian/0.0.65-1_swh1_bpo10+1
- debian/0.0.65-1_swh1
- debian/0.0.64-1_swh1_bpo10+1
- debian/0.0.64-1_swh1
- debian/0.0.63-1_swh1_bpo10+1
- debian/0.0.63-1_swh1
- debian/0.0.62-1_swh1_bpo10+1
- debian/0.0.62-1_swh1
- debian/0.0.60-1_swh1_bpo10+1
- debian/0.0.60-1_swh1
- debian/0.0.59-1_swh1_bpo10+1
- debian/0.0.59-1_swh1
- debian/0.0.57-1_swh2_bpo10+1
- debian/0.0.57-1_swh2
- debian/0.0.57-1_swh1
- debian/0.0.56-1_swh1_bpo10+1
- debian/0.0.56-1_swh1
- debian/0.0.55-1_swh1_bpo10+1
- debian/0.0.55-1_swh1
- debian/0.0.54-1_swh1_bpo10+1
- debian/0.0.54-1_swh1
- debian/0.0.53-1_swh1_bpo10+1
- debian/0.0.53-1_swh1
- debian/0.0.52-1_swh1_bpo10+1
- debian/0.0.52-1_swh1
- debian/0.0.51-1_swh3_bpo9+2
- debian/0.0.51-1_swh3_bpo9+1
- debian/0.0.51-1_swh3_bpo10+1
- debian/0.0.51-1_swh3
- debian/0.0.51-1_swh2_bpo9+1
- debian/0.0.51-1_swh2_bpo10+1
- debian/0.0.51-1_swh2
- debian/0.0.51-1_swh1
- debian/0.0.50-1_swh1
- debian/0.0.49-1_swh2_bpo9+1
- debian/0.0.49-1_swh2_bpo10+1
- debian/0.0.49-1_swh2
- debian/0.0.49-1_swh1
- debian/0.0.48-1_swh1
- debian/0.0.47-1_swh1_bpo9+1
- debian/0.0.47-1_swh1_bpo10+1
- debian/0.0.47-1_swh1
- debian/0.0.46-1_swh1_bpo9+1
- debian/0.0.46-1_swh1_bpo10+1
- debian/0.0.46-1_swh1
- debian/0.0.45-1_swh1_bpo9+1
- debian/0.0.45-1_swh1_bpo10+1
- debian/0.0.45-1_swh1
- debian/0.0.44-1_swh1_bpo9+1
- debian/0.0.44-1_swh1_bpo10+1
- debian/0.0.44-1_swh1
- debian/0.0.43-1_swh1_bpo9+1
- debian/0.0.43-1_swh1_bpo10+1
- debian/0.0.43-1_swh1
- debian/0.0.42-1_swh1_bpo9+1
- debian/0.0.42-1_swh1_bpo10+1
- debian/0.0.42-1_swh1
- debian/0.0.41-1_swh1_bpo9+1
- debian/0.0.41-1_swh1_bpo10+1
- debian/0.0.41-1_swh1
- debian/0.0.40-1_swh1_bpo9+1
- debian/0.0.40-1_swh1_bpo10+1
- debian/0.0.40-1_swh1
- debian/0.0.39-1_swh1_bpo9+3
- debian/0.0.39-1_swh1_bpo9+2
- debian/0.0.39-1_swh1_bpo9+1
- debian/0.0.39-1_swh1_bpo10+1
- debian/0.0.39-1_swh1
- debian/0.0.38-1_swh1_bpo9+1
- debian/0.0.38-1_swh1_bpo10+1
- debian/0.0.38-1_swh1
- debian/0.0.37-1_swh1
- debian/0.0.36-1_swh1
- debian/0.0.35-1_swh2_bpo9+1
- debian/0.0.35-1_swh2
- debian/0.0.35-1_swh1_bpo9+1
- debian/0.0.35-1_swh1
- debian/0.0.34-1_swh1
- debian/0.0.33-1_swh1
- debian/0.0.32-1_swh1_bpo9+1
- debian/0.0.32-1_swh1
- debian/0.0.31-1_swh1_bpo9+1
- debian/0.0.31-1_swh1
- debian/0.0.30-1_swh1_bpo9+1
- debian/0.0.30-1_swh1
- 6.2.0
Cook and download a directory from the Software Heritage Vault
You have requested the cooking of the directory with identifier None into a standard tar.gz archive
.
Are you sure you want to continue ?
Download a directory from the Software Heritage Vault
You have requested the download of the directory with identifier None as a standard tar.gz archive
.
Are you sure you want to continue ?
Cook and download a revision from the Software Heritage Vault
You have requested the cooking of the history heading to revision with identifier swh:1:rev:be894c66c88b45f621529df011e1dc5f1de2bd8e into a bare git archive
.
Are you sure you want to continue ?
Download a revision from the Software Heritage Vault
You have requested the download of the history heading to revision with identifier swh:1:rev:be894c66c88b45f621529df011e1dc5f1de2bd8e as a bare git archive
.
Are you sure you want to continue ?
Invalid Email !
The provided email is not well-formed.
Download link has expired
The requested archive is no longer available for download from the Software Heritage Vault.
Do you want to cook it again ?
Take a new snapshot of a software origin
If the archived software origin currently browsed is not synchronized with its upstream version (for instance when new commits have been issued), you can explicitly request Software Heritage to take a new snapshot of it.
Use the form below to proceed. Once a request has been submitted and accepted, it will be processed as soon as possible. You can then check its processing state by visiting this dedicated page.![swh spinner](/static/img/swh-spinner.gif)
Processing "take a new snapshot" request ...
To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.
TimestampWithTimezone: Make 'offset_bytes' required and remove 'negative_utc'.
swh-model
=========
Implementation of the Data model of the Software Heritage project, used to
archive source code artifacts.
This module defines the notion of SoftWare Heritage persistent IDentifiers
(SWHIDs) and provides tools to compute them:
```sh
$ swh-identify fork.c kmod.c sched/deadline.c
swh:1:cnt:2e391c754ae730bd2d8520c2ab497c403220c6e3 fork.c
swh:1:cnt:0277d1216f80ae1adeed84a686ed34c9b2931fc2 kmod.c
swh:1:cnt:57b939c81bce5d06fa587df8915f05affbe22b82 sched/deadline.c
$ swh-identify --no-filename /usr/src/linux/kernel/
swh:1:dir:f9f858a48d663b3809c9e2f336412717496202ab
```
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...