I have an SVN server running on Windows.
I need to force update every “working copy” (for each user using svn repos) after commit. I tried using post-commit.bat script in the hook directory on svn server. The problem is that the update is happening on the server, not in the client file.
Here's an excerpt:
@ECHO OFF
SET REPOS=%1
SET REV=%2
SET DIR=%REPOS%/hooks
SET WORKING_COPY=c:\path\to\working\copy
svn update %WORKING_COPY%
Example: Person 1: commit
after committing Person 2: update
If this is not possible, I would like to have at least an automatic update for person 1. Person 1: commit, then automatic update in his working copy.
I saw a solution with a Windows Scheduled job, but this is my last solution.
You can help? Many thanks.
CM
source
share