Hi , I need to know how to use pre commit hook of svn.
I need SVN revision number to be used in php files.
Please guide how does pre-commit hook work.
Hi , I need to know how to use pre commit hook of svn.
I need SVN revision number 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