Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I need to create/update/delete files in a directory (and its subdirectories) every time an SVN repo is updated.

I was told this can be done writing a script which uses output from svnlook changed command.

I wonder: Is there an already written script for this?

Added: I think svnsync is not suitable for this, as it needs the synced repository to have .svn folders what is no good for us. (it was even more wrong: svnsync synchronized repos not working dirs, which I need to synchronize)

share|improve this question
    
How soon after the repo is updated do you need the directory synced? –  John Jan 23 '13 at 13:02

2 Answers 2

svnlook is usually used in a post-commit hook, but the hooks are run by SVN server. So unless your directory is located on the SVN server, it won't do you much good.

Consider creating a simple cron job with svn update.

share|improve this answer

Is there an already written script for this?

Yes.

I know (and wrote here, at SO, URLs) about at least two bash-scripts (sync single revision or revisions-range) and one in Ruby, suitable for using in post-commit hook (where DEST DIR is local in all cases)

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.