Re: can I use post-commit hook to produce a C header file?
From: Ryan Schmidt <subversion-2011a_at_ryandesign.com>
Date: Wed, 25 May 2011 03:20:29 -0500
On May 25, 2011, at 02:26, 宋哲 wrote:
> I want to use post-commit hook to produce a c header file, so I can get the latest revision number from my c codec. But I can not do that because in post-commit hook script, I don't known how to put a header file into the repo.
In your post-commit you could create such a header file, but you're right, you cannot then write it into the repository. Well, you could commit it as a second revision, but that's fraught with problems.
> $Rev$ can get a paiticular file's revision number, but I want to get the whole repo's.
The typical answer to this problem is:
http://subversion.apache.org/faq.html#version-value-in-source
|
This is an archived mail posted to the Subversion Users mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.