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