Is there a way for the post commit hook to update only the files that
changed on the Web server? This way we can preview our changes right
the way. VisualSVN server and the Web server are 2 separate machines
on the same network.

I am coming from an older version of Tigris SVN where my post commit
hook updates a remote web server. The script looks like this:
---------------------------------------------------------------------------------------
@ECHO OFF
REM POST-COMMIT HOOK

set repo=%1
set rev=%2
set log="M:\svnlogs\post-commit_log.txt"
set err="M:\svnlogs\post-commit_err-log.txt"
set svn="M:\Progra~1\Subversion\bin\svn.exe"
set svnlook="M:\Progra~1\Subversion\bin\svnlook.exe"
set svnpath="M:\Progra~1\Subversion\bin"

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

REM set cmd=%svn% update D:\WorkingFolder
REM (start "start-title" /D%svnpath% /BELOWNORMAL /B %cmd% >> %log%)

FOR /F "usebackq" %%i IN (`%%svnlook%% dirs-changed -r %rev% %repo%`)
DO %svn% update "\\10.10.0.81\dev-svn\tclisc" >> %log%

( echo End commit
date /t
time /t ) >> %log%
--------------------------------------------------------------------

The only chagnes I made to this script is the PATHs to the binaries to
match VisualSVN bin folder.
The VisualSVN service runs under a special account that has Modify
permissions across the network. That is what I used before.  I am at a
loss here. Could you please advise what are my options?.

Reply via email to