?
Solved

SVN commit - update a file automatically

Posted on 2010-11-29
1
Medium Priority
?
417 Views
Last Modified: 2013-11-13
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
Comment
Question by:Commsquare
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 9

Accepted Solution

by:
jeremycrussell earned 2000 total points
ID: 34231396
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

Featured Post

What Is Blockchain Technology?

Blockchain is a technology that underpins the success of Bitcoin and other digital currencies, but it has uses far beyond finance. Learn how blockchain works and why it is proving disruptive to other areas of IT.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Make the most of your online learning experience.
What do responsible coders do? They don't take detrimental shortcuts. They do take reasonable security precautions, create important automation, implement sufficient logging, fix things they break, and care about users.
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses

800 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question