gnu-arch-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnu-arch-users] Re: Keyword substitution, How can I automatically add v


From: Matthieu Moy
Subject: [Gnu-arch-users] Re: Keyword substitution, How can I automatically add version to file?
Date: Wed, 19 Jan 2005 09:56:49 +0100
User-agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.2 (gnu/linux)

Juraj Kubelka <address@hidden> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]