tags:

views:

87

answers:

3

I have just setup subversion on windows server 2003 with following link.

http://blogs.vertigosoftware.com/teamsystem/archive/2006/01/16/Setting_up_a_Subversion_Server_under_Windows.aspx

And i want to see the changes by web access. So that any change i have committed will directly appear on my website.

Does anybody know where those file of svn server is located?

A: 

I'm sure all you need to know is in the documentation: http://svnbook.red-bean.com/en/1.4/svn-book.html

Jonathan Parker
A: 

The subversion repository is backed in to an relational database stored (according the link you given) is in "c:\Documents and Settings\Subversion Repository".

If you want browse the HEAD of your repository with HTTP you need to install Apache with the subversion module.

Once you have configured it you will able to browse your repository visiting (for example) http://localhost/svn/myproject. See the svnbook for details.

Andrea Francia
A: 

Thank you for the fast reply. I found a good solution for this.

All i had to do is just play with post-commit script. You dig into the repository folders hook directory and all you need is there.

What i have done is just update the server's directory with "svn update" command. And you need to write the script in post-commit file.

Eventually, any commit will update the server's file and I can see the change directly from url.

On windows i have created the post-commit.bat file and following script is placed in it.

@ECHO ON

set repo=%1
set rev=%2
set log=C:\subversion\logs\post-commit_log.log
set err=C:\subversion\logs\post-commit_err-log.txt
set svn=svn
set svnpath=C:\subversion\bin
set working=C:\wamp\www\myproject

( echo ========================================================================
echo Start commit %repo% r%rev%
date /t
time /t
) >> %log%

set cmd=%svn% update --username uSeRnAmE  --password StRoNgPaSsWoRd %working%
(start "start-title" /D"%svnpath%" /NORMAL /B %cmd% >> %log%)

Hopefully anyone can find it useful.

Ariunbayar