Ludovic Courtès ddd455c0dd
swh: ‘lookup-origin-revision’ handles branches pointing to directories.
Fixes <https://issues.guix.gnu.org/69070>.

* guix/swh.scm (branch-target): Add clause for 'directory and 'alias.
(lookup-origin-revision): Iterate over all the visits of ORIGIN instead
of just the first one.  Handle the case where ‘branch-target’ returns
something other than a release or revision.
* tests/swh.scm ("lookup-origin-revision"): New test.

Change-Id: I7f636739a719908763bca1d3e7376341dd62e816
2024-03-09 18:55:49 +01:00
..
2022-05-22 01:07:52 +02:00
2023-06-09 14:19:14 +02:00
2024-01-08 21:04:44 +03:00
2022-09-29 22:59:48 +02:00
2023-02-19 21:13:23 -05:00
2023-05-18 20:01:32 +02:00