From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nikita Karetnikov Subject: Re: Goals for 0.4 Date: Sat, 31 Aug 2013 20:40:01 +0400 Message-ID: <877gf1yftq.fsf@karetnikov.org> References: <87vc2o4qwc.fsf@gnu.org> <87y57kljro.fsf@karetnikov.org> <87hae81uvo.fsf@gnu.org> <87bo4fcbcz.fsf@karetnikov.org> <878uzj6nev.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46963) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VFo96-00041F-LR for guix-devel@gnu.org; Sat, 31 Aug 2013 12:35:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VFo95-000112-7p for guix-devel@gnu.org; Sat, 31 Aug 2013 12:35:32 -0400 In-Reply-To: <878uzj6nev.fsf@gnu.org> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?= =?utf-8?Q?s?= message of "Fri, 30 Aug 2013 20:31:20 +0200") 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: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: guix-devel@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable > 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 Here=E2=80=99s what I decided to use: =2D-list-generations =2D-list-generations=3D10 =2D-list-generations=3D1,32,9 =2D-list-generations=3D4..10 =2D-list-generations=3D11.. =2D-list-generations=3D..13 =2D-list-generations=3Dfirst-month =2D-list-generations=3Dlast-month I guess I have to write a parser for the =E2=80=9C1,32,9=E2=80=9D case, rig= ht? Or is there a simpler solution? > 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? OK, but how can I integrate this in the above scheme? Will it be OK to create an additional =E2=80=98--short=E2=80=99 switch or a new =E2=80=98--list-generations-short=E2=80=99 option? Both solutions look ugl= y. > I=E2=80=99ll have to disagree. :-) > There=E2=80=99s no such verb as =E2=80=9Crollback=E2=80=9D, I think, wher= eas =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... See [1=E2=80=934]. Would you like to keep =E2=80=98--roll-back=E2=80=99 an= yway? [1] https://en.wiktionary.org/wiki/rollback [2] http://www.merriam-webster.com/dictionary/rollback [3] http://www.thefreedictionary.com/rollback [4] http://oxforddictionaries.com/us/definition/american_english/rollback --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iQIcBAEBAgAGBQJSIhxjAAoJEM+IQzI9IQ38wy0P/iF3YqjzcaRWFpqHfx8I//OC Px0N2L5O0PdofF2OodvMxb8cqQPuJRVxSijHSI9Hlyg/Hsj6kdw1gmfVzd5wNt+r ufV0Yb/xC7mcCaQhqw7uWM8DR9XExKpykmciWNpLeLWuas5mW3SyAg2+pQlpXWVu fvxp6jjn6DuMQrUk6Dq/wdmFsH8TRhHaEsajgw0UECyKK3KLdXmcfV+mztXFgF/y 8Yi0SfMCW/eSAJ2cnMlKmH6Dp9Bx+VHqwmgDvlZMhhWKTxcuwXVVO51Cky0cDlJi hN65RSUhb9Ks0ztGNmy1xYBkVhBMIfUz83YmXTu4myARCWJWYVf7OS/XYbC/q38t YvB8uf9I4KdJHR+r4CzYcxDB1VRYib8zsmvm8i2VE2Rz6SfXa0RTrcECFzkc52xV r3i6xcZSBtSRY6fiHu2J7txfgscMkQRYVWkzA7VIz6jbC1bL930bnVig7tXmml+E d1kCwKRuneNATyrKzkRTRpGl43xhGAFbCXAAD4RlQWcgXW/loy3VPyar7XRDE/X1 P6ZwbT3876mTmuG9Opj4LT7RyrU7csfch0bLL8HB+YH52FmIhhCdH1WqMuMe+5+j nN+tvgb8cp9xKQurODKBRn/UFyawDDH7uRMivRWlps3MYdwEJzlAtVRN+waduNju ChsxnoOg5DwRMy57nbg8 =aPzQ -----END PGP SIGNATURE----- --=-=-=--