Alex Kost skribis:
> Ludovic Courtès (2014-10-07 20:00 +0400) wrote:
>
>> Alex Kost skribis:
[...]
>> It’d be enough for me to just call ‘switch-symlinks’ and let it throw
>> ‘system-error’ if something’s wrong. The exception will be caught, the
>> user will see a “No such file” error, and ‘g
Ludovic Courtès (2014-10-07 20:00 +0400) wrote:
> Alex Kost skribis:
>
> [...]
>
>> +(define (switch-to-generation profile number)
>> + "Atomically switch PROFILE to the generation NUMBER."
>> + (let ((current (generation-number profile))
>> +(file(generation-file-name profile numbe
Alex Kost skribis:
> Thanks, I've added a couple of tests. The new patches are attached.
Thanks for the quick reply.
> Further improvements (documentation may be unsatisfactory)?
> From 9493421a4e094be6686ff6f28749946d491f81cd Mon Sep 17 00:00:00 2001
> From: Alex Kost
> Date: Tue, 7 Oct 201
Ludovic Courtès (2014-10-06 23:27 +0400) wrote:
> Alex Kost skribis:
>
>> A patch is attached. Some comments:
>>
>> - ‘shitted-generation’ is not a very good name, I think. Ideas?
>
> ‘shifted-generation’ is better :-), but otherwise maybe
> ‘relative-generation’? No strong opinion.
I like ‘r
Alex Kost skribis:
> A patch is attached. Some comments:
>
> - ‘shitted-generation’ is not a very good name, I think. Ideas?
‘shifted-generation’ is better :-), but otherwise maybe
‘relative-generation’? No strong opinion.
> - ‘previous-generation-number’ may use ‘shifted-generation’ now:
>