Questions tagged [svn-hooks]

In Apache Subversion, a hook is a program triggered by some repository event, such as the creation of a new revision or the modification of an unversioned property. This is often used for integration of Subversion with other tools, e.g. bug tracking software.

Subversion hook is a program triggered by some repository event, such as the creation of a new revision or the modification of an unversioned property. This is often used for integration of Subversion with other tools, e.g. bug tracking software, for implementing custom policies and for e-mail notifications.

Hooks in Subversion are stored as a part of the repository on the Subversion server in a directory called "hooks". E.g. C:\Repositories\foobar\hooks\.

Helpful articles from the SVNBook:

  1. Subversion Repository Hooks (complete reference on each hook type)

  2. Implementing Repository Hooks

215 questions
181
votes
11 answers

What is a pre-revprop-change hook in SVN, and how do I create it?

I wanted to edit a log comment in the repository browser and received an error message that no pre-revprop-change hook exists for the repository. Besides having a scary name, what is a pre-revprop-change hook, and how do I create it?
Manu
  • 28,753
  • 28
  • 75
  • 83
49
votes
10 answers

How to require commit messages in VisualSVN server?

We've got VisualSVN Server set up as our Subversion server on Windows, and we use Ankhsvn + TortoiseSVN as clients on our workstations. How can you configure the server to require commit messages to be non-empty?
Ben Collins
  • 20,538
  • 18
  • 127
  • 187
42
votes
16 answers

Common Types of Subversion Hooks

What kinds of hook scripts are people using for Subversion? Just general ideas but code would be great too!
dragonmantank
  • 15,243
  • 20
  • 84
  • 92
40
votes
22 answers

Share common / useful SVN pre-commit hooks

What are some common and/or useful pre-commit hooks for SVN?
powtac
  • 40,542
  • 28
  • 115
  • 170
40
votes
11 answers

SVN pre-commit hook for avoiding changes to tags subdirectories

Is there anybody who has clear instructions on how to add a pre-commit hook that avoids changes to tags subdirectories? I already searched the internet quite a bit. I found this link: SVN::Hooks::DenyChanges , but I can't seem to compile things.
Wim Deblauwe
  • 25,113
  • 20
  • 133
  • 211
35
votes
9 answers

SVN hooks for Windows

I did a little googling and found that there isn't really a resource of SVN hooks for Windows. So I figured I'd start a wiki here to centralize it. If you contribute, please be sure to indicate: The name of the hook What the script does The actual…
Greg Dean
  • 29,221
  • 14
  • 67
  • 78
34
votes
5 answers

Windows Pre-commit hook for comment length Subversion

I seem to be getting nowhere with this. Either searching the web for a script, etc. Anyone got a script that you can just edit the out-of-box pre-commit.tmpl in a Windows environment that requires x chars to be entered in for a comment on commit…
PositiveGuy
  • 46,620
  • 110
  • 305
  • 471
21
votes
7 answers

Running another program in Windows bat file and not create child process

I have subversion server with a post-commit hook to do something. I want the checkin finish soon, not wait the hook script. But by design, the Subversion post-commit hook script will run until all child process exit, so using somthing like: start…
zhongshu
  • 7,748
  • 8
  • 41
  • 54
20
votes
6 answers

Best strategy to write hooks for subversion in Windows

What is the best approach to write hooks for Subversion in Windows? As far as I know, only executable files can be used. So what is the best choice? Plain batch files (very limited but perhaps OK for very simple solutions) Dedicated compiled…
Yann Trevin
  • 3,823
  • 1
  • 30
  • 32
19
votes
4 answers

Easiest/best way to set up SVN commit emails?

I'd like to set up commit emails on a project I'm work on, as described here: http://producingoss.com/en/vc.html#commit-emails That is, use a post commit hook to send an email to a list containing the commit title/log and diff of the changes. What's…
Will Robertson
  • 62,540
  • 32
  • 99
  • 117
16
votes
3 answers

Is there a Subversion Checkout Hook or something similar?

I'm using a subversion repository and I want to know whenever somebody asks my repository for a checkout; like a 'svn co' or an 'svn up'. Is there a hook or some other method that I can use so that a script is run, or email sent, whenever somebody…
Robert Massaioli
  • 13,379
  • 7
  • 57
  • 73
16
votes
4 answers

pre-revprop-change hook either failed

I don't know if this hook is out-of-box or if mine is just messed up and I just need to replace it but when I go and try to edit a log comment on a commit I get this error message: DAV request failed; it’s possibly that the repository’s…
PositiveGuy
  • 46,620
  • 110
  • 305
  • 471
15
votes
2 answers

how to install svn post-commit hook

I am running SVN on Linux. I was hoping to run auto deployment once committed. Based on my searching, it looks like svn post-commit might do the trick. But I couldn't find SVN post-commit from my SVN installation. So I wonder if it's a separate…
johnsam
  • 4,192
  • 8
  • 39
  • 58
13
votes
3 answers

SVN post commit: Who is the user that committed?

In an SVN post commit hook, how can I get the user who executed the commit?
Blagomir
  • 253
  • 2
  • 9
10
votes
2 answers

client side pre-commit hooks in subversion

Is any way to setup pre-commit hooks on the client side with an svn client, for example through eclipse or a command line svn client ?
mafalda
  • 1,024
  • 1
  • 13
  • 24
1
2 3
14 15