Project

General

Profile

Sync SVN in Redmine

Added by Anonymous almost 12 years ago

When we view the repository it freezes Redmne for all users. How to resolve that?

I tried using
http://www.redmine.org/projects/redmine/wiki/HowTo_setup_automatic_refresh_of_repositories_in_Redmine_on_commit

but that did not work.

Using Redmine 1.4.3 stable version with mongrel

In the link that I provided Is aw the following line

"Simply add a post-commit (or post-commit.cmd on a Windows system) script file in the hooks sub-directory which contains the HTTP request call :"

Does this mean we have to create a folder called hooks int eh redmine folder and add the post-commit.cmd file or add that in the SVN directory on the SVN server?


Replies (8)

RE: Sync SVN in Redmine - Added by Kevin Wojniak almost 12 years ago

You add the hook into your SVN repository folder. Google SVN hooks. The hook gets called after a commit, and you want your Redmine project to update so that it doesn't freeze each time users view the webpage.

RE: Sync SVN in Redmine - Added by Anonymous almost 12 years ago

Following are the contents of my post-commit.cmd file

#!/bin/sh

curl "http://redmineurl/sys/fetch_changesets?key=keynumber" 

Is this correct or do I need to change anything?

RE: Sync SVN in Redmine - Added by Kevin Wojniak almost 12 years ago

Looks about right, although my SVN and Redmine are on the same server, so it's using local file paths. Make sure permissions are right on the file too. Not sure if this matters, but my file name is "post-commit", without the extension.

RE: Sync SVN in Redmine - Added by Anonymous almost 12 years ago

I have my Redmine on windows and SVN on Linux

RE: Sync SVN in Redmine - Added by Anonymous almost 12 years ago

I have post-commit.tmpl in my hooks folder. Do I need to create a seperate post-commit.cmd file in the hooks folder? I have 2 folders (A and B) under var\svn folder. Do I need to create the post-commit.cmd file in the hooks folder of A and B?

RE: Sync SVN in Redmine - Added by Anonymous almost 12 years ago

I am getting the following error when committing a file

Error:post-commit hook failed (exit code 127) with no output
Error:/var/svn/dbname/hooks/post-commit:2:curl:not found

RE: Sync SVN in Redmine - Added by Anonymous almost 12 years ago

do we need to download curl on my SVN server?

RE: Sync SVN in Redmine - Added by Anonymous almost 12 years ago

I downloaded curl and seems like it is working.

    (1-8/8)