Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I run a script when I commit to subversion?

Tags:

svn

phpdoc

hook

I'd like to run a script that builds the documentation for my php project. It is basically just using wget to run phpdoc.

like image 575
RobbieGee Avatar asked Sep 26 '08 12:09

RobbieGee


People also ask

What is commit in SVN?

svn commit will send any lock tokens that it finds and will release locks on all PATH s committed (recursively) unless --no-unlock is passed. Tip. If you begin a commit and Subversion launches your editor to compose the commit message, you can still abort without committing your changes.

What is pre-commit hook in SVN?

A pre-commit hook is a feature available in the Subversion version control system that allows code to be validated before it is committed to the repository. The PHP_CodeSniffer pre-commit hook allows you to check code for coding standard errors and stop the commit process if errors are found.

How do I commit a single file in SVN?

Select any file and/or folders you want to commit, then TortoiseSVN → Commit.... The commit dialog will show you every changed file, including added, deleted and unversioned files. If you don't want a changed file to be committed, just uncheck that file.


1 Answers

Here's a fairly extensive tutorial on SVN hooks

like image 106
Oli Avatar answered Oct 11 '22 18:10

Oli