Maxim Cournoyer 79ec651a28
scripts: time-machine: Error when attempting to visit too old commits.
* doc/guix.texi (Invoking guix time-machine): Document limitation.
* guix/inferior.scm (cached-channel-instance): New VALIDATE-CHANNELS
argument.  Use it to validate channels when there are no cache hit.
* guix/scripts/time-machine.scm
(%options): Tag the given reference with 'tag-or-commit instead of 'commit.
(%oldest-possible-commit): New variable.
(guix-time-machine) <validate-guix-channel>: New nested procedure.  Pass it to
the 'cached-channel-instance' call.
* tests/guix-time-machine.sh: New test.
* Makefile.am (SH_TESTS): Register it.

Suggested-by: Simon Tournier <zimon.toutoune@gmail.com>
Reviewed-by: Ludovic Courtès <ludo@gnu.org>
Reviewed-by: Simon Tournier <zimon.toutoune@gmail.com>
2023-08-16 21:34:13 -04:00
..
2023-07-28 18:08:17 +01:00
2023-08-12 23:02:31 +02:00
2023-03-13 15:08:33 +01:00
2023-03-13 15:08:33 +01:00
2023-03-13 15:08:33 +01:00
2023-03-13 15:08:33 +01:00
2023-07-18 18:16:49 +02:00
2022-12-02 23:20:54 +01:00
2023-03-13 15:08:33 +01:00
2023-02-19 10:09:15 +01:00
2023-03-13 15:08:33 +01:00
2023-03-13 15:08:33 +01:00
2023-05-25 12:51:16 +02:00
2023-03-13 15:08:33 +01:00