unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: 20137@debbugs.gnu.org
Subject: bug#20137: number of generation doesn't always rise monotonically
Date: Wed, 18 Mar 2015 21:36:26 +0100	[thread overview]
Message-ID: <87k2yedovp.fsf@gnu.org> (raw)
In-Reply-To: <20150318173550.GE525@venom.suse.cz> ("Tomáš Čech"'s message of "Wed, 18 Mar 2015 18:35:51 +0100")

Tomáš Čech <sleep_walker@gnu.org> skribis:

> 1] install some package (you'll have N and N+1)
> 2] install some other package (you'll have N, N+1 and N+2)
> 3] delete generation N+1 (you'll have N and N+2)
> 4] switch to generation N
> 5] install some package - you'll get generation N+1 again
>   (you'll have N, N+1 and N+2 again)

That’s expected, yes.  What makes you think it’s a problem?

When implementing that, there were several possible choices:

  1. Upon rollback to N, remove all generations above N.  Rejected
     because it gratuitously prevents useful use cases.

  2. Upon rollback from P to N, keep all the generations, but use P+1
     for the next generation number.  Doesn’t work, because rolling back
     from P+1 would bring you back to P instead of N.

  3. The current behavior.

See <http://lists.gnu.org/archive/html/bug-guix/2013-01/msg00325.html>
for part of the discussion.

Thanks,
Ludo’.

  reply	other threads:[~2015-03-18 20:37 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-18 17:35 bug#20137: number of generation doesn't always rise monotonically Tomáš Čech
2015-03-18 20:36 ` Ludovic Courtès [this message]
2015-03-18 20:47   ` Taylan Ulrich Bayırlı/Kammer
2015-03-18 20:52     ` Thompson, David
2015-03-19  8:47     ` Ludovic Courtès
2015-03-22 22:48     ` Ludovic Courtès
2015-03-22 23:40 ` Tomáš Čech
2015-03-23  9:13   ` Ludovic Courtès
2015-03-23  9:50     ` Tomáš Čech

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87k2yedovp.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=20137@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).