From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: Goals for 0.4 Date: Fri, 30 Aug 2013 20:31:20 +0200 Message-ID: <878uzj6nev.fsf@gnu.org> References: <87vc2o4qwc.fsf@gnu.org> <87y57kljro.fsf@karetnikov.org> <87hae81uvo.fsf@gnu.org> <87bo4fcbcz.fsf@karetnikov.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49884) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VFTYb-0007dE-AP for guix-devel@gnu.org; Fri, 30 Aug 2013 14:36:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VFTYV-0007Jt-K8 for guix-devel@gnu.org; Fri, 30 Aug 2013 14:36:29 -0400 Received: from hera.aquilenet.fr ([141.255.128.1]:55833) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VFTYV-0007JX-Dv for guix-devel@gnu.org; Fri, 30 Aug 2013 14:36:23 -0400 In-Reply-To: <87bo4fcbcz.fsf@karetnikov.org> (Nikita Karetnikov's message of "Fri, 30 Aug 2013 21:55:08 +0400") List-Id: 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-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Nikita Karetnikov Cc: guix-devel@gnu.org Nikita Karetnikov skribis: >>>> =E2=80=A2 New =E2=80=98--list-generations=E2=80=99 and =E2=80=98--dele= te-generations=E2=80=99 options for >>>> =E2=80=98guix package=E2=80=99. > > I=E2=80=99ve been thinking about these options, and I=E2=80=99m not sure = how they should > work. > > Will it be enough to output a generation number and a list of packages > when =E2=80=98--list-generations=E2=80=99 is used? For example: > > Generation 1: > guile 2.0.9 out,debug gnu/packages/base.scm:1022:33 > guile-bootstrap 2.0 out gnu/packages/bootstrap.scm:191:3 > > Generation 2: > hello 2.8 out gnu/packages/base.scm:50:2 Perhaps there could be several formats. For instance, --list-generations would be equivalent to --list-generations=3Dshort: generation 1 Dec. 16 2013 generation 2 May 7 2013 And then --list-generations=3Dlong would do something like: generation 1 Dec. 16 2013 guile 2.0.7 out,debug gnu/packages/guile.scm hello 2.8 out gnu/packages/base.scm generation 2 May 7 2013 guile 2.0.9 out gnu/packages/guile.scm WDYT? > I think we could add =E2=80=98--from=E2=80=99 and =E2=80=98--to=E2=80=99 = that have to be used with the > mentioned options: > > $ guix package --delete-generations 1 3 8 > Deleting generations 1, 3, 8... > > $ guix package --delete-generations --from=3D4 --to=3D8 > Deleting generations from 4 to 8... Rather, I would do: --delete-generations=3D3..9 It=E2=80=99s easier to parse and to type. Likewise, it could even support: --delete-generations=3D1month > Also, I=E2=80=99d like to remove the dash from =E2=80=98--roll-back=E2=80= =99 since =E2=80=98--fallback=E2=80=99 > is written without one. > > What do you think? I=E2=80=99ll have to disagree. :-) There=E2=80=99s no such verb as =E2=80=9Crollback=E2=80=9D, I think, wherea= s =E2=80=9Cfallback=E2=80=9D is a valid noun (and we don=E2=80=99t have the choice for =E2=80=9Cfallback=E2= =80=9D, since there are messages in the daemon that mention it.) Now, if you had --rollback as an alias, I won=E2=80=99t scream either... Ludo=E2=80=99.