[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#69328] [PATCH 04/12] swh: Add ‘type’ field to <visit>.
From: |
Ludovic Courtès |
Subject: |
[bug#69328] [PATCH 04/12] swh: Add ‘type’ field to <visit>. |
Date: |
Fri, 23 Feb 2024 16:48:08 +0100 |
* guix/swh.scm (<visit>)[type]: New field.
Change-Id: I7677984c7daef38d8f3c3bef19723fa0efb035ba
---
guix/swh.scm | 2 ++
1 file changed, 2 insertions(+)
diff --git a/guix/swh.scm b/guix/swh.scm
index 04cecd854c..83f67423c8 100644
--- a/guix/swh.scm
+++ b/guix/swh.scm
@@ -54,6 +54,7 @@ (define-module (guix swh)
visit-snapshot-url
visit-status
visit-number
+ visit-type
visit-snapshot
snapshot?
@@ -312,6 +313,7 @@ (define-json-mapping <visit> make-visit visit?
(url visit-url "origin_visit_url")
(snapshot-url visit-snapshot-url "snapshot_url" string*) ;string | #f
(status visit-status "status" string->symbol) ;'full | 'partial | 'ongoing
+ (type visit-type "type" string->symbol) ;'git | 'git-checkout | ...
(number visit-number "visit"))
;;
<https://archive.softwareheritage.org/api/1/snapshot/4334c3ed4bb208604ed780d8687fe523837f1bd1/>
--
2.41.0
- [bug#69328] [PATCH 00/12] Better source code recovery from SWH, Ludovic Courtès, 2024/02/23
- [bug#69328] [PATCH 05/12] swh: ‘origin-visits’ takes an optional ‘max’ parameter., Ludovic Courtès, 2024/02/23
- [bug#69328] [PATCH 09/12] bzr-download: Implement nar fallback., Ludovic Courtès, 2024/02/23
- [bug#69328] [PATCH 11/12] perform-download: Allow use of ‘download-nar’ for ‘--check’ builds., Ludovic Courtès, 2024/02/23
- [bug#69328] [PATCH 08/12] svn-download: Use ‘swh-download-directory-by-nar-hash’., Ludovic Courtès, 2024/02/23
- [bug#69328] [PATCH 12/12] download: Honor ‘GUIX_DOWNLOAD_SEQUENCE’ environment variable., Ludovic Courtès, 2024/02/23
- [bug#69328] [PATCH 06/12] swh: ‘lookup-origin-revision’ handles branches pointing to directories., Ludovic Courtès, 2024/02/23
- [bug#69328] [PATCH 04/12] swh: Add ‘type’ field to <visit>.,
Ludovic Courtès <=
- [bug#69328] [PATCH 01/12] lint: Switch to SRFI-71., Ludovic Courtès, 2024/02/23
- [bug#69328] [PATCH 02/12] lint: archival: Fix crash in non-Git case., Ludovic Courtès, 2024/02/23
- [bug#69328] [PATCH 10/12] download-nar: Distinguish ‘output’ and ‘item’ parameter., Ludovic Courtès, 2024/02/23
- [bug#69328] [PATCH 03/12] lint: archival: Trigger “Save Code Now” for VCSes other than Git., Ludovic Courtès, 2024/02/23
- [bug#69328] [PATCH 07/12] hg-download: Use ‘swh-download-directory-by-nar-hash’., Ludovic Courtès, 2024/02/23
- [bug#69328] [PATCH 00/12] Better source code recovery from SWH, Ludovic Courtès, 2024/02/23