Gentoo Archives: gentoo-dev

From: "René 'Necoro' Neumann" <lists@××××××.eu>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Usages of CVS $Header$ keyword in ebuilds - use cases wanted
Date: Tue, 26 Aug 2008 23:19:25
Message-Id: 48B48F75.6090707@necoro.eu
In Reply to: Re: [gentoo-dev] Usages of CVS $Header$ keyword in ebuilds - use cases wanted by "Robin H. Johnson"
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA1
3
4 Robin H. Johnson schrieb:
5 > On Wed, Aug 27, 2008 at 12:37:09AM +0200, Ren?? 'Necoro' Neumann wrote:
6 >> - --or: to have the unique rev-id instead of the branch-local rev-number--
7 >> bzr log -l1 --show-ids $FILE | grep "revision-id" | cut -f2 -d' '
8 > IIRC, the revision-id is just like the Git $Id$, it's a hex string, not
9 > an incremented counter like the revision number in CVS.
10 >
11
12 True ... it usually looks like
13 author@××××.in-20080821233630-v94w5lkebavkx9ti
14
15 Though, if one enforces certain policies using the "main branch" located
16 on the server like disallowing pushing and only allowing merges, one can
17 safely use the branch-revno (which is incremental). Only oddity are
18 revnos of merged branches (e.g. "193.1.10")
19
20 Another approach would be to use the unix-timestamp of the last change.
21 Though it is not a unique identifier per se, it should be sufficient here.
22 It should be queriable in all VCS. Though it might be, that it is not
23 possible using standard CLI and requires a plugin in some way (but I
24 bet, an easy one ;))
25
26 - - Necoro
27 -----BEGIN PGP SIGNATURE-----
28 Version: GnuPG v2.0.9 (GNU/Linux)
29 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
30
31 iEYEARECAAYFAki0j3UACgkQ4UOg/zhYFuDZ+QCdGm7Sjew2+27KCUB06lWf8aLr
32 XBsAoIbJSke4xHyPiucYEmkuNVd9GPJ3
33 =jTaO
34 -----END PGP SIGNATURE-----

Replies

Subject Author
Re: [gentoo-dev] Usages of CVS $Header$ keyword in ebuilds - use cases wanted "René 'Necoro' Neumann" <lists@××××××.eu>