diff options
author | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2023-07-19 11:31:50 -0400 |
---|---|---|
committer | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2023-08-16 21:34:13 -0400 |
commit | 79ec651a286c71a3d4c72be33a1f80e76a560031 (patch) | |
tree | 9b45d72bc1bd2ef8434675c72db8840c04d79552 /gnu/packages.scm | |
parent | ecab937897385fce3e3ce0c5f128afba4304187c (diff) | |
download | guix-79ec651a286c71a3d4c72be33a1f80e76a560031.tar guix-79ec651a286c71a3d4c72be33a1f80e76a560031.tar.gz |
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>
Diffstat (limited to 'gnu/packages.scm')
0 files changed, 0 insertions, 0 deletions