[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

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.
>
> Does it is possible? thanks!

The typical answer to this problem is:

http://subversion.apache.org/faq.html#version-value-in-source
Received on 2011-05-25 10:21:07 CEST

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.