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 1KY7oq-00071U-Qc for garchives@archives.gentoo.org; Tue, 26 Aug 2008 23:19:25 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5C384E027B; Tue, 26 Aug 2008 23:19:22 +0000 (UTC) Received: from host171.sitepush.net (213-239-241-171.clients.your-server.de [213.239.241.171]) by pigeon.gentoo.org (Postfix) with ESMTP id 06028E027B for ; Tue, 26 Aug 2008 23:19:22 +0000 (UTC) Received: from localhost (localhost.localdomain [127.0.0.1]) by host171.sitepush.net (Postfix) with ESMTP id EEA6C13EC0B3 for ; Wed, 27 Aug 2008 01:19:20 +0200 (CEST) Received: from [192.168.2.102] (p54A20AD0.dip0.t-ipconnect.de [84.162.10.208]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by host171.sitepush.net (Postfix) with ESMTP id D15A513EC09B for ; Wed, 27 Aug 2008 01:19:20 +0200 (CEST) Message-ID: <48B48F75.6090707@necoro.eu> Date: Wed, 27 Aug 2008 01:19:17 +0200 From: =?UTF-8?B?UmVuw6kgJ05lY29ybycgTmV1bWFubg==?= User-Agent: Thunderbird 2.0.0.16 (X11/20080728) 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 To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] Usages of CVS $Header$ keyword in ebuilds - use cases wanted 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> <20080826222516.GI30560@curie-int.orbis-terrarum.net> <48B48595.4040208@necoro.eu> <20080826225414.GJ30560@curie-int.orbis-terrarum.net> In-Reply-To: <20080826225414.GJ30560@curie-int.orbis-terrarum.net> X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at host171.sitepush.net X-Archives-Salt: 6c7ee948-ac0d-4071-8199-bbccd2e406a3 X-Archives-Hash: a5d96a546e162ed58b6230ba8f1c394b -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Robin H. Johnson schrieb: > On Wed, Aug 27, 2008 at 12:37:09AM +0200, Ren?? 'Necoro' Neumann wrote: >> - --or: to have the unique rev-id instead of the branch-local rev-number-- >> bzr log -l1 --show-ids $FILE | grep "revision-id" | cut -f2 -d' ' > IIRC, the revision-id is just like the Git $Id$, it's a hex string, not > an incremented counter like the revision number in CVS. > True ... it usually looks like author@doma.in-20080821233630-v94w5lkebavkx9ti Though, if one enforces certain policies using the "main branch" located on the server like disallowing pushing and only allowing merges, one can safely use the branch-revno (which is incremental). Only oddity are revnos of merged branches (e.g. "193.1.10") Another approach would be to use the unix-timestamp of the last change. Though it is not a unique identifier per se, it should be sufficient here. It should be queriable in all VCS. Though it might be, that it is not possible using standard CLI and requires a plugin in some way (but I bet, an easy one ;)) - - Necoro -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAki0j3UACgkQ4UOg/zhYFuDZ+QCdGm7Sjew2+27KCUB06lWf8aLr XBsAoIbJSke4xHyPiucYEmkuNVd9GPJ3 =jTaO -----END PGP SIGNATURE-----