Note that unlike the generic history method, SWH history is repo-specific rather than content-specific. An archive event adds all content from the repo to the Software Heritage archival snapshot at once. Any individual file can still be referenced by its content identifier.

history_swh(origin_url, host = "https://archive.softwareheritage.org", ...)

Arguments

origin_url

The url address to a GitHub, GitLab, or other recognized repository origin

host

the domain name for the Software Heritage API

...

additional arguments

See also

Examples

# \donttest{ history_swh("https://github.com/CSSEGISandData/COVID-19")
#> [[1]] #> [[1]]$origin #> [1] "https://github.com/CSSEGISandData/COVID-19" #> #> [[1]]$visit #> [1] 9 #> #> [[1]]$date #> [1] "2021-09-01T20:58:11.011833+00:00" #> #> [[1]]$status #> [1] "full" #> #> [[1]]$snapshot #> [1] "b1a1fe90e06517d4d4b2cdc92fa0aa544c1290e8" #> #> [[1]]$type #> [1] "git" #> #> [[1]]$metadata #> named list() #> #> [[1]]$origin_visit_url #> [1] "https://archive.softwareheritage.org/api/1/origin/https://github.com/CSSEGISandData/COVID-19/visit/9/" #> #> [[1]]$snapshot_url #> [1] "https://archive.softwareheritage.org/api/1/snapshot/b1a1fe90e06517d4d4b2cdc92fa0aa544c1290e8/" #> #> #> [[2]] #> [[2]]$origin #> [1] "https://github.com/CSSEGISandData/COVID-19" #> #> [[2]]$visit #> [1] 8 #> #> [[2]]$date #> [1] "2021-08-22T16:23:35.501026+00:00" #> #> [[2]]$status #> [1] "full" #> #> [[2]]$snapshot #> [1] "1f24dd8a7e6a36817a226b3f622c7bb0e39a1e5b" #> #> [[2]]$type #> [1] "git" #> #> [[2]]$metadata #> named list() #> #> [[2]]$origin_visit_url #> [1] "https://archive.softwareheritage.org/api/1/origin/https://github.com/CSSEGISandData/COVID-19/visit/8/" #> #> [[2]]$snapshot_url #> [1] "https://archive.softwareheritage.org/api/1/snapshot/1f24dd8a7e6a36817a226b3f622c7bb0e39a1e5b/" #> #> #> [[3]] #> [[3]]$origin #> [1] "https://github.com/CSSEGISandData/COVID-19" #> #> [[3]]$visit #> [1] 7 #> #> [[3]]$date #> [1] "2021-08-18T01:48:37.485279+00:00" #> #> [[3]]$status #> [1] "full" #> #> [[3]]$snapshot #> [1] "738ef15ad4693bcce56c4ae385d8c1b91b4b88be" #> #> [[3]]$type #> [1] "git" #> #> [[3]]$metadata #> named list() #> #> [[3]]$origin_visit_url #> [1] "https://archive.softwareheritage.org/api/1/origin/https://github.com/CSSEGISandData/COVID-19/visit/7/" #> #> [[3]]$snapshot_url #> [1] "https://archive.softwareheritage.org/api/1/snapshot/738ef15ad4693bcce56c4ae385d8c1b91b4b88be/" #> #> #> [[4]] #> [[4]]$origin #> [1] "https://github.com/CSSEGISandData/COVID-19" #> #> [[4]]$visit #> [1] 6 #> #> [[4]]$date #> [1] "2021-08-08T05:20:06.127396+00:00" #> #> [[4]]$status #> [1] "full" #> #> [[4]]$snapshot #> [1] "19880c54d1365995b9b9bbcdad7a2ca367bc85b1" #> #> [[4]]$type #> [1] "git" #> #> [[4]]$metadata #> named list() #> #> [[4]]$origin_visit_url #> [1] "https://archive.softwareheritage.org/api/1/origin/https://github.com/CSSEGISandData/COVID-19/visit/6/" #> #> [[4]]$snapshot_url #> [1] "https://archive.softwareheritage.org/api/1/snapshot/19880c54d1365995b9b9bbcdad7a2ca367bc85b1/" #> #> #> [[5]] #> [[5]]$origin #> [1] "https://github.com/CSSEGISandData/COVID-19" #> #> [[5]]$visit #> [1] 5 #> #> [[5]]$date #> [1] "2021-07-18T07:40:46.418342+00:00" #> #> [[5]]$status #> [1] "full" #> #> [[5]]$snapshot #> [1] "23999ad900cbc149fac8c7c586adffe8daf25fab" #> #> [[5]]$type #> [1] "git" #> #> [[5]]$metadata #> named list() #> #> [[5]]$origin_visit_url #> [1] "https://archive.softwareheritage.org/api/1/origin/https://github.com/CSSEGISandData/COVID-19/visit/5/" #> #> [[5]]$snapshot_url #> [1] "https://archive.softwareheritage.org/api/1/snapshot/23999ad900cbc149fac8c7c586adffe8daf25fab/" #> #> #> [[6]] #> [[6]]$origin #> [1] "https://github.com/CSSEGISandData/COVID-19" #> #> [[6]]$visit #> [1] 4 #> #> [[6]]$date #> [1] "2021-06-04T22:32:44.728621+00:00" #> #> [[6]]$status #> [1] "full" #> #> [[6]]$snapshot #> [1] "840aa251437b217bd31dbd9450e5bf86ad87da15" #> #> [[6]]$type #> [1] "git" #> #> [[6]]$metadata #> named list() #> #> [[6]]$origin_visit_url #> [1] "https://archive.softwareheritage.org/api/1/origin/https://github.com/CSSEGISandData/COVID-19/visit/4/" #> #> [[6]]$snapshot_url #> [1] "https://archive.softwareheritage.org/api/1/snapshot/840aa251437b217bd31dbd9450e5bf86ad87da15/" #> #> #> [[7]] #> [[7]]$origin #> [1] "https://github.com/CSSEGISandData/COVID-19" #> #> [[7]]$visit #> [1] 3 #> #> [[7]]$date #> [1] "2020-07-26T15:50:40.538742+00:00" #> #> [[7]]$status #> [1] "full" #> #> [[7]]$snapshot #> [1] "57eded41fccbff51168a50ac47207eeef48995fa" #> #> [[7]]$type #> [1] "git" #> #> [[7]]$metadata #> named list() #> #> [[7]]$origin_visit_url #> [1] "https://archive.softwareheritage.org/api/1/origin/https://github.com/CSSEGISandData/COVID-19/visit/3/" #> #> [[7]]$snapshot_url #> [1] "https://archive.softwareheritage.org/api/1/snapshot/57eded41fccbff51168a50ac47207eeef48995fa/" #> #> #> [[8]] #> [[8]]$origin #> [1] "https://github.com/CSSEGISandData/COVID-19" #> #> [[8]]$visit #> [1] 2 #> #> [[8]]$date #> [1] "2020-04-10T18:02:02.090432+00:00" #> #> [[8]]$status #> [1] "full" #> #> [[8]]$snapshot #> [1] "63aecaddf1c3d5155f0b6af5b8f6750a14d790cc" #> #> [[8]]$type #> [1] "git" #> #> [[8]]$metadata #> named list() #> #> [[8]]$origin_visit_url #> [1] "https://archive.softwareheritage.org/api/1/origin/https://github.com/CSSEGISandData/COVID-19/visit/2/" #> #> [[8]]$snapshot_url #> [1] "https://archive.softwareheritage.org/api/1/snapshot/63aecaddf1c3d5155f0b6af5b8f6750a14d790cc/" #> #> #> [[9]] #> [[9]]$origin #> [1] "https://github.com/CSSEGISandData/COVID-19" #> #> [[9]]$visit #> [1] 1 #> #> [[9]]$date #> [1] "2020-03-23T17:00:50.757683+00:00" #> #> [[9]]$status #> [1] "full" #> #> [[9]]$snapshot #> [1] "640bb0805be2f501c24936130a47c3980f7885b7" #> #> [[9]]$type #> [1] "git" #> #> [[9]]$metadata #> named list() #> #> [[9]]$origin_visit_url #> [1] "https://archive.softwareheritage.org/api/1/origin/https://github.com/CSSEGISandData/COVID-19/visit/1/" #> #> [[9]]$snapshot_url #> [1] "https://archive.softwareheritage.org/api/1/snapshot/640bb0805be2f501c24936130a47c3980f7885b7/" #> #>
# }