Solved

SVN commit - update a file automatically

Posted on 2010-11-29
1
409 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
1 Comment
 
LVL 9

Accepted Solution

by:
jeremycrussell earned 500 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

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

Suggested Solutions

Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
Fine Tune your automatic Updates for Ubuntu / Debian
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

912 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now