From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: Rollback problems Date: Thu, 24 Jan 2013 12:34:25 +0100 Message-ID: <87mwvystku.fsf@gnu.org> References: <201301232148.46744.andreas@enge.fr> <87mwvzsdzt.fsf@gnu.org> <201301240017.55013.andreas@enge.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:42961) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TyL4f-0000s1-C2 for bug-guix@gnu.org; Thu, 24 Jan 2013 06:34:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TyL4d-0005bq-1x for bug-guix@gnu.org; Thu, 24 Jan 2013 06:34:29 -0500 Received: from mail4-relais-sop.national.inria.fr ([192.134.164.105]:30618) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TyL4c-0005bY-RT for bug-guix@gnu.org; Thu, 24 Jan 2013 06:34:26 -0500 In-Reply-To: <201301240017.55013.andreas@enge.fr> (Andreas Enge's message of "Thu, 24 Jan 2013 00:17:54 +0100") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: Andreas Enge Cc: bug-guix@gnu.org Hello! Andreas Enge skribis: > Am Mittwoch, 23. Januar 2013 schrieb Ludovic Court=C3=A8s: >> And what if you roll back once you=E2=80=99re at the empty profile? > > Then nothing should happen. > >> It seems more intuitive for me to error out like this, because there was >> really nothing but nothingness before =E2=80=9Chello=E2=80=9D was instal= led. :-) >> WDYT? > > No, I disagree; when I have nothing, install hello and roll back, I shoul= d=20 > be back to nothing. Some other opinions would be useful on this matter. Hmm, OK. Well, that=E2=80=99s doable, so if you or others find it less confusing this way, it=E2=80=99s probably worth doing it. >> This is expected (same behavior as nix-env.) Profile generations are >> not deleted unless you explicitly do so; this is what guarantees that >> one can roll back anywhere they want. >>=20 >> But I wonder if this is really worth the trouble. In my experience, a >> scenario like the one above rarely happens, if ever. > > I find the behaviour of roll back currently very confusing, and the=20 > situation looks reasonable to me: > I install hello, it works, so I keep it. > I install freetype, it does not work, so I drop it again. > I install file, it does not work, so I drop it again. > Now I expect to have only hello, but I have hello and freetype. Right, that seems like a real-world scenario, I admit. So I guess we can make that change. That will mean storing the ordered list of previous generations in each generation=E2=80=99s manifest, and then getting the previous generation number from there. I wonder if generations should be identified by a number at all, then. Thoughts? Thanks, Ludo=E2=80=99.