开发者

How to use pre commit hook in SVN to return revision number of the repository?

I need to know how to use pre commit hook of svn.

I need SVN revision num开发者_JAVA技巧ber to be used in php files.

Please guide how does pre-commit hook work.


If you're using TortoiseSVN, you can create a post commit client-side hook which can call the tool SubWCRev.exe provided with TortoiseSVN.

This tool can replace a special token in files.

I use that in my .net projects as post compilation event to put the last revision in the AssemblyInfo of the application, adding it to the app version number.


I am not sure I understood correctly but I think you're asking about Keyword Substitution: http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜