From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1KY6sw-0002dG-8g for garchives@archives.gentoo.org; Tue, 26 Aug 2008 22:19:34 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D10FEE03ED; Tue, 26 Aug 2008 22:19:29 +0000 (UTC) Received: from mail.isohunt.com (b01.ext.isohunt.com [208.71.112.51]) by pigeon.gentoo.org (Postfix) with ESMTP id BF074E03ED for ; Tue, 26 Aug 2008 22:19:29 +0000 (UTC) Received: (qmail 16034 invoked from network); 26 Aug 2008 22:19:29 -0000 Received: from S010600022af11287.vc.shawcable.net (HELO curie.orbis-terrarum.net) (24.84.179.214) (smtp-auth username robbat2@isohunt.com, mechanism login) by mail.isohunt.com (qpsmtpd/0.33-dev on beta01) with (AES256-SHA encrypted) ESMTPSA; Tue, 26 Aug 2008 22:19:29 +0000 Received: (qmail 5178 invoked by uid 10000); 26 Aug 2008 15:25:16 -0700 Date: Tue, 26 Aug 2008 15:25:16 -0700 From: "Robin H. Johnson" To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] Usages of CVS $Header$ keyword in ebuilds - use cases wanted Message-ID: <20080826222516.GI30560@curie-int.orbis-terrarum.net> References: <20080826204036.GE30560@curie-int.orbis-terrarum.net> <20080826154107.373c7095@xdune.lan> <20080826205421.GF30560@curie-int.orbis-terrarum.net> <20080826155909.6d2ba7a6@xdune.lan> <20080826214525.GH30560@curie-int.orbis-terrarum.net> <20080826165750.07a3792c@xdune.lan> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="k9xkV0rc9XGsukaG" Content-Disposition: inline In-Reply-To: <20080826165750.07a3792c@xdune.lan> User-Agent: Mutt/1.5.16 (2007-06-09) X-Archives-Salt: 8307067d-1029-4ea2-9e18-17d459ea6e4c X-Archives-Hash: 67acfd3a07aeae322ffbc5624002a418 --k9xkV0rc9XGsukaG Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Aug 26, 2008 at 04:57:50PM -0500, Yuri Vasilevski wrote: > > Why do you need to identify the changes? Considering that the checksum > > changes as well, is detecting change not sufficient? (or asking the > > VCS for what files have changed since your last check time). > I am writing a tool that creates deb (as in Debian package format) based > distributions from gentoo packages and that tool encodes the CVS > revision as part of "debian revision" of the packages. So I need this > part to be chronologically ordered, as opposed to have only the > knowledge of whenever the file has changed or not. I'd call that critically dangerous in missing some changes. If I have a file in $FILESDIR, and change it, but it has the same name, there is no commit to the ebuild, and your .debs won't pick up changes at all. This is usually for cases with compile fixes that don't need revision bumps at all, but sometimes there are also changes to scripts. If you're making binary package .debs, I gather that you are grabbing the (pre|post)(inst|rm) and setup blocks for inclusion? That is an interesting use case, and would that would present a problem with any VCS migration. - Under SVN, you'd only have the global revision, which might not uniquely identify the file. - Bzr doesn't support keyword expansion in any released version. There are/were plans for it in 1.7, but I haven't seen anything since the first prototype. - Hg supports it with an extension: http://www.selenic.com/mercurial/wiki/index.cgi/KeywordExtension But has warnings about why it sucks http://www.selenic.com/mercurial/wiki/index.cgi/KeywordPlan See the 'keyword update intervals' item (mainly having to touch every file in the repo sometimes). - Git supports only the $Id$ keyword, and expands it to the SHA1 of the file, which ends up being a duplicate of the information we have in the Manifest. --=20 Robin Hugh Johnson Gentoo Linux Developer & Infra Guy E-Mail : robbat2@gentoo.org GnuPG FP : 11AC BA4F 4778 E3F6 E4ED F38E B27B 944E 3488 4E85 --k9xkV0rc9XGsukaG Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) Comment: Robbat2 @ Orbis-Terrarum Networks - The text below is a digital signature. If it doesn't make any sense to you, ignore it. iEYEARECAAYFAki0gswACgkQPpIsIjIzwiykqwCgn+kLnO+7c15+NMhxQn0Dde2x dugAoPqOFkldhf314zuwc49jLzbdr3YB =LVuh -----END PGP SIGNATURE----- --k9xkV0rc9XGsukaG--