• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 426
  • Last Modified:

SVN commit - update a file automatically

I would like to have a mechanism that automatically increments a value in a specific file in my repository each time i do a commit. Is this possible?
0
Commsquare
Asked:
Commsquare
1 Solution
 
jeremycrussellCommented:
You can use a post-commit hook script.

Set it up to check out the file, update it, and then commit it back.

Here's some info on setting up hooks.  
http://svnbook.red-bean.com/en/1.4/svn-book.html#svn.reposadmin.create.hooks

If you're comfortable with a little shell scripting, should be pretty straight forward
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

What Kind of Coding Program is Right for You?

There are many ways to learn to code these days. From coding bootcamps like Flatiron School to online courses to totally free beginner resources. The best way to learn to code depends on many factors, but the most important one is you. See what course is best for you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now