I performed following steps to implement the process of automatic mirroring in svn (relaying master commits to slave):
Firstly I ran svnsync init
command to initialize the both master and slave repositories
Now I created post-commit.ba
t and post-revprop-change.bat
on the master side and prev-revprop-change.bat
on the slave side inside the hooks directory.
Now on commiting my changes from the master side using eclipse the commit hangs for an infinite amount of time without any success.
The commands I am running in post-commit.bat
and post-revprop-change.bat
are:
svnsync sync https://TestPcWin8pro.rcik3.domain.local/svn/testrcirepo/
and
svnsync copy-revprops https://TestPcWin8pro.rcik3.domain.local/svn/testrcirepo/
Please check the commands and suggest why the commit hangs while committing from Eclipse (using Subclipse plugin).
I see a couple of issues with your current replication configuration.
As far as I guess, your VisualSVN Server instance is configured to use some untrusted certificate (self-signed certificate, is it?). In such case you have to add the following options to the command-line you run in both hook scripts:
--trust-server-cert --non-interactive
These options will force Subversion client to accepts the certificate without interactive prompt.
You don't specify any authentication-related options in these command-lines. Make sure to add valid password and username options:
--username <USERNAME> --password <SUPERSECRET> --no-auth-cache