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
0
votes
1 answer

VisualSVN Hook replace information in file?

i will replace automatically informations while SVN-Commitment. For example: myfile.js /* $Author:User; $ChangeDate:02.01.2014; $Revision:10401; */ function myJavascriptFile(){ } Now when the commitment is runnig the hook should replace the…
JSX
  • 28
  • 1
  • 3
0
votes
0 answers

Error during library import in Python (Windows)

I am trying to configure svn hook for email notification using mailer.py script from apache, but it always crash on import of svn libs. I try two ways of installing svn and python. I try to install everything manually using command line and use…
0
votes
2 answers

How to customize Collabnet Subversion Edge repository access rules to forbid users from deleting files(no-delete)

Some developers in my team has gone mad...they sometime delete a file. I've been assigned to stop them from doing that. So far I tried following(Google is my best friend) Under "Repository Access Rules" I've ######################SVN…
0
votes
1 answer

TortoiseSVN: Error message when committing a file

I am using TortoiseSVN to commit a file, but I am getting the following error message: Error post-commit hook failed (exit code 25) with output: Error An unexpected error has occurred. The process at spawn ID exp5 has produced the following…
user2507818
  • 2,719
  • 5
  • 21
  • 30
0
votes
1 answer

How to write a SVN pre-commit hook script in Windows(Server-side)

Each change made and committed to SVN by a developer on my team delivers a requirement of the app and this requirement has an id which is written in the first line of the commit message. I need a hook to catch this id and call an external service to…
0
votes
1 answer

How can I undo my changes to 'post-revprop-change'?

In error I edited the 'post-revprop-change' file instead of the 'pre-revprop-change' in the hooks directory. The edit I made was to copy in the instructions described here which allow changes to be made to the log entry. Obviously this doesn't make…
Neil
  • 287
  • 1
  • 3
  • 12
0
votes
1 answer

SVN hooks. Is there such thing as post-update server side hook?

I want to enforce policy, when one should always update before commit. Generally I like the idea of doing this with server side set of hooks to guarantee that unmatched commit will be prevented. In order to know, when was the last update and last…
akalenuk
  • 3,815
  • 4
  • 34
  • 56
0
votes
2 answers

can we configure precomm it hook for particular branch/tag

Scenario : i have precommit hook configured in my svn repo of multiple projects.I have blocked commits in code which include synchronize method or println method,But in some cases i want to give grant so that coders can commit those methods . Now…
Kaku
  • 119
  • 2
  • 11
0
votes
1 answer

How can I use wildcards or regular expressions to control Path-based authorization / access control for svn?

Is there a way to control view/read access to svn using path-based authorization which relies on regular expressions or wildcards? I know I can use svnperms to control write access via commit hook script but I need to limit read/view access as well…
Peter Kahn
  • 12,364
  • 20
  • 77
  • 135
0
votes
3 answers

Hooks in Subversion

I would like to run a batch file via post-commit hook in Subversion. My problem is that I want to run it once for each file that has been committed but am unaware of a way to get the names of the committed files within the hook. I am able to run it…
mgrenier
  • 1,409
  • 3
  • 21
  • 45
0
votes
2 answers

Manage SVN hooks with SVN?

As far as I could see, there is no built-in feature to manage SVN hooks in SVN itself. There are some ideas of course, such as another repository with hooks scripts, running an svn export to the hooks directory on commit, but how would you do it?
Nikolai Prokoschenko
  • 8,465
  • 11
  • 58
  • 97
0
votes
2 answers

Post-commit hook to send error message to the client

Am using svnserver in my windows(7) machine. I need to send errror message from post-commit.bat to the svn client(may be any client) in windows. any idea to do this ? Thanks,
CrazyCoder
  • 772
  • 5
  • 11
  • 31
0
votes
1 answer

how to change svn commit path through hooks and python

everyone. Due to lose manual document about python svn api. I can't solve this issues. The detail is, when someone commit svn something to repository "/repo/prj1". But, I wang to change these content commit to other place, ie, "/repo/prj2". I found…
0
votes
4 answers

subversion upgrade 1.6 -> 1.7 hooks infrastructure incompatibility

I'm going to upgrade my company's subversion server from version 1.6 to 1.7. The server runs on linux (Ubuntu AFAIK). I've read all those: Subversion 1.7 release notes I've also read those…
Krzysztof Jabłoński
  • 1,890
  • 1
  • 20
  • 29
0
votes
1 answer

Add file to repository in post-commit hook

Is it possible to add new file to Repository in post-commit hooks. When users commit files, the new file has to be added to the repository which contains commit comments given by the user. For second time commit of same file needs to append the file…
user1553605
  • 1,333
  • 5
  • 24
  • 42
1 2 3
14
15