How to automatically update a file on upload using SVN

Probably a duplicate

I am looking for a way to update a file (say lastbuild.txt) with the latest SVN revision number on commit. How can i do this?

Thank you:)

+2


source to share


3 answers


SVN supports hooks - scripts or programs that are called upon specific actions. You can install a post-commit hook that will update the file for you.



More on hooks here .

+1


source


Check out the following documentation:



http://svnbook.red-bean.com/nightly/en/svn.reposadmin.create.html#svn.reposadmin.create.hooks

0


source


If the file is under version control, you can use svn: keywords easier than catching it.

http://svnbook.red-bean.com/en/1.5/svn.advanced.props.special.keywords.html

0


source







All Articles