$ snap version
snap 2.61.1
snapd 2.61.1
series 16
ubuntu 24.04
kernel 6.6.0-14-generic
Hugo 0.123 had some (intentional) breaking changes in the upstream.
https://github.com/gohugoio/hugo/issues/11455
And it broke a build of a site and some template updates were necessary (again it's expected).
To buy some time to update the templates, I reverted to the last working revision (upstream version 0.122) by running `snap revert hugo`. Please correct me if I'm wrong, but the "revert" operation doesn't hold an update to the snap and let the snapd refresh it to newer revisions and delete the last working revision from the filesystem since the default refresh.retain is 2). In the end, I lost the hugo snap revision 18119 from the filesystem as a surprise. It can be recovered by `snap refresh --revision 18119 hugo` though.
The expectation is to keep the last working revision if "revert" was explicitly done by an user.
$ grep 'snap-hugo-.*\.mount' /var/log/syslog
2024-02-20T13:40:35.968913+09:00 t14 systemd[1]: Mounting snap-hugo-18034.mount - Mount unit for hugo, revision 18034...
2024-02-20T13:40:35.968918+09:00 t14 systemd[1]: Mounting snap-hugo-18119.mount - Mount unit for hugo, revision 18119...
2024-02-20T13:40:35.969284+09:00 t14 systemd[1]: Mounted snap-hugo-18034.mount - Mount unit for hugo, revision 18034.
2024-02-20T13:40:35.969292+09:00 t14 systemd[1]: Mounted snap-hugo-18119.mount - Mount unit for hugo, revision 18119.
2024-02-20T13:46:09.167010+09:00 t14 systemd[1]: Mounting snap-hugo-18500.mount - Mount unit for hugo, revision 18500...
2024-02-20T13:46:09.205358+09:00 t14 systemd[1]: Mounted snap-hugo-18500.mount - Mount unit for hugo, revision 18500.
2024-02-20T13:46:09.741487+09:00 t14 systemd[1]: snap-hugo-18034.mount: Deactivated successfully.
2024-02-21T15:12:40.909055+09:00 t14 systemd[1]: Mounting snap-hugo-18119.mount - Mount unit for hugo, revision 18119...
2024-02-21T15:12:40.909061+09:00 t14 systemd[1]: Mounting snap-hugo-18500.mount - Mount unit for hugo, revision 18500...
2024-02-21T15:12:40.909386+09:00 t14 systemd[1]: Mounted snap-hugo-18119.mount - Mount unit for hugo, revision 18119.
2024-02-21T15:12:40.909392+09:00 t14 systemd[1]: Mounted snap-hugo-18500.mount - Mount unit for hugo, revision 18500.
2024-02-22T09:30:06.952646+09:00 t14 systemd[1]: Mounting snap-hugo-18549.mount - Mount unit for hugo, revision 18549...
2024-02-22T09:30:06.997413+09:00 t14 systemd[1]: Mounted snap-hugo-18549.mount - Mount unit for hugo, revision 18549.
2024-02-22T09:30:07.610672+09:00 t14 systemd[1]: snap-hugo-18500.mount: Deactivated successfully.
2024-02-24T04:43:19.184112+09:00 t14 systemd[1]: Mounting snap-hugo-18119.mount - Mount unit for hugo, revision 18119...
2024-02-24T04:43:19.184119+09:00 t14 systemd[1]: Mounting snap-hugo-18549.mount - Mount unit for hugo, revision 18549...
2024-02-24T04:43:19.184578+09:00 t14 systemd[1]: Mounted snap-hugo-18119.mount - Mount unit for hugo, revision 18119.
2024-02-24T04:43:19.184585+09:00 t14 systemd[1]: Mounted snap-hugo-18549.mount - Mount unit for hugo, revision 18549.
2024-02-23T19:48:33.273140+09:00 t14 systemd[1]: Mounting snap-hugo-18568.mount - Mount unit for hugo, revision 18568...
2024-02-23T19:48:33.312142+09:00 t14 systemd[1]: Mounted snap-hugo-18568.mount - Mount unit for hugo, revision 18568.
2024-02-23T19:48:33.904029+09:00 t14 systemd[1]: snap-hugo-18119.mount: Deactivated successfully.