Received: from spf1.us4.outblaze.com (spf1.us4.outblaze.com [205.158.62.23]) by sdf.lonestar.org (8.12.10/8.12.10) with ESMTP id j0J9QG55005250 for ; Wed, 19 Jan 2005 09:26:17 GMT Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by spf1.us4.outblaze.com (Postfix) with ESMTP id D99C829860F for ; Wed, 19 Jan 2005 09:26:40 +0000 (GMT) Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CrCIn-0003Ve-HX for migo@homemail.com; Wed, 19 Jan 2005 04:39:01 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1CrC9J-0000hS-JU for gnu-arch-users@gnu.org; Wed, 19 Jan 2005 04:29:14 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1CrC9H-0000g8-1n for gnu-arch-users@gnu.org; Wed, 19 Jan 2005 04:29:11 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CrC9F-0000bh-OP for gnu-arch-users@gnu.org; Wed, 19 Jan 2005 04:29:10 -0500 Received: from [129.88.30.1] (helo=imag.imag.fr) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1CrBsg-0005my-Pj for gnu-arch-users@gnu.org; Wed, 19 Jan 2005 04:12:03 -0500 Received: from ecrins.imag.fr (ecrins.imag.fr [129.88.43.124]) by imag.imag.fr (8.13.0/8.13.0) with ESMTP id j0J8unLR008148; Wed, 19 Jan 2005 09:56:49 +0100 (CET) Received: from moy by ecrins.imag.fr with local (Exim 3.35 #1) id 1CrBdx-0008QX-00; Wed, 19 Jan 2005 09:56:49 +0100 To: Juraj Kubelka References: <20050118203950.GA14564@cesta> From: Matthieu Moy Mail-Followup-To: Juraj Kubelka , gnu-arch-users@gnu.org Date: Wed, 19 Jan 2005 09:56:49 +0100 In-Reply-To: <20050118203950.GA14564@cesta> (Juraj Kubelka's message of "Tue, 18 Jan 2005 21:39:50 +0100") Message-ID: User-Agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-1.4 (imag.imag.fr [129.88.30.1]); Wed, 19 Jan 2005 09:56:49 +0100 (CET) X-IMAG-MailScanner: Found to be clean X-IMAG-MailScanner-Information: Please contact the ISP for more information Cc: gnu-arch-users@gnu.org Subject: [Gnu-arch-users] Re: Keyword substitution, How can I automatically add version to file? X-BeenThere: gnu-arch-users@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: a discussion list for all things arch-ish List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: gnu-arch-users-bounces+migo=homemail.com@gnu.org Errors-To: gnu-arch-users-bounces+migo=homemail.com@gnu.org Status: RO Content-Length: 1275 Lines: 40 Juraj Kubelka writes: > But how? When `$1 == commit' it is too late for updating > and when `$1 == precommit' it hasn't any effect. Yes, because the changeset to be uploaded is already computed. There was some discussions here about adding a preprecommit hook. I don't remember the conclusion. A solution would be to use a wrapper script to commit. > Do you have better idea? I need it because of tagging builds (binary > files). I need to know relation between binaries in sources and it > isn't good depend on human factor. Not sure to understand your need, but doesn't a build script generating a source file containing the version info do the job (as tla itself does to implement "tla --version") ? Another solution is to use a "timestamp" feature (or equivalent) from your editor to do this. > Can this tag line cause any branch merging problem? Yes, you'll get conflicts on this line on each merge. Also, if your hook modifies unmodified files, you'll get huge revision libraries, and bigger changesets. -- Matthieu _______________________________________________ Gnu-arch-users mailing list Gnu-arch-users@gnu.org http://lists.gnu.org/mailman/listinfo/gnu-arch-users GNU arch home page: http://savannah.gnu.org/projects/gnu-arch/