From mboxrd@z Thu Jan 1 00:00:00 1970 From: Roel Janssen Subject: Re: Display diffs between generations. Date: Thu, 20 Oct 2016 14:56:04 +0200 Message-ID: <87k2d3p4bf.fsf@gnu.org> References: <87eg59izmw.fsf@gnu.org> <87d1kry22u.fsf@gnu.org> <87inuj5r5v.fsf@gnu.org> <87y43ck6dz.fsf@gnu.org> <87a8frq0n5.fsf@gnu.org> <87lgz78v4d.fsf@gnu.org> <87eg3ogd5l.fsf@gnu.org> <87r37nxshp.fsf@gnu.org> <8760opeskj.fsf@gnu.org> <87wph43x8x.fsf@gnu.org> <87vawo57sn.fsf@gnu.org> <87funrci3f.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51248) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bxCs6-0000R5-0v for guix-devel@gnu.org; Thu, 20 Oct 2016 08:54:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bxCs4-0003F0-Vz for guix-devel@gnu.org; Thu, 20 Oct 2016 08:54:58 -0400 In-reply-to: <87funrci3f.fsf@gnu.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: guix-devel Ludovic Courtès writes: > Roel Janssen skribis: > >> Ludovic Courtès writes: > > [...] > >>> I don’t think so. The old behavior will always be available by >>> specifying a single generation anyway: >>> >>> guix package --list-generations=42 >>> >>> It may be worth mentioning this in the manual. >>> >>> My understanding of the discussion referred above is that people were >>> fine with that (or indifferent ;-)). >> >> Then the following patch should be it. I applied your genius >> suggestions of using @code{display-entry} instead of >> @code{display-entries}. I learned something new again today. :-) > > Heh. :-) > >>>From 5630a512f16c6677fd5b0b8085e2ef15cb10499b Mon Sep 17 00:00:00 2001 >> From: Roel Janssen >> Date: Wed, 19 Oct 2016 23:38:11 +0200 >> Subject: [PATCH] guix package: Display generation diffs. >> >> * guix/ui.scm (display-profile-content-diff): New variable. >> * guix/scripts/package.scm (process-query): Use display-profile-content-diff. > > The code LGTM, but it doesn’t implement the behavior I suggested above > for --list-generations=42, which I think I didn’t explain correctly. > > I think what I’m suggesting is that the first matching generation should > be displayed in full using ‘display-profile-content’, and subsequent > generations would be displayed as a diff. > > Thus, when viewing a single generation, as with --list-generations=42, > we’d only display the full contents of that generation. > > Does that make sense? Ah, sorry, I forgot about this. This makes sense. But then, what should we see when we do: guix package --list-generations=42,46 Should we see: Generation 42 ...: Generation 46 ...: Or should we then see: Generation 42 ...: Generation 46 ...: Kind regards, Roel Janssen