Update for each client

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.

+3
source share
3

post-commit SVN . , .

svn update .

+3

, , - .

? ?

Subversion . .

, , , .

+3

" " ( , svn repos) .

I don’t think that updating every “working copy” when committing is possible - at least not without some terribly complicated things.

If this is not possible, I would like to have at least an automatic update for person 1.

Not sure what you want to do exactly, but if you use Tortoise, it supports client-side scripts . Maybe they can help (but they only help in the original working copy). But, as I said, I'm not sure I understand your specific needs.

+2
source

Source: https://habr.com/ru/post/1766668/


All Articles