I've learned the one more svn command svnsync, which I ever tried before. thought sharing this will be usefull for svn buddies.
Basically this command is to replicate the svn repository (i.e) Master to n number of slave repository setup.
How to:
1. Create the slave repository. follow the below steps for creating that.
a. Create an new repository.
b. Then you need to alter somescripts in the newly created repository inorder to accept this setup.
c. Get in to hooks directory of newly created above repository and rename pre-revprop-change.tmpl to pre-revprop-change.
d. Give pre-revprop-change executable permission.
e. Then edit the pre-revprop-change and add exit 0 at the begining of the file.
2. Execute the below commands to point master repository to newly created slave
1. svnsync init slaverepositoryurl masterrepositoryurl
The above command is one time setup command (i.e) pointing the master repository to slave repository.
2. svnsync sync slaverepositoryurl
The above command is invoked when ever you need to sync with master repository.
Similarly you can have n number of slaves for the master repository.
Also heared that this is not the right way to use it in production, but any how Im posting this to get startup.
2 comments:
I receive this error from Windows: svnsync: El requerimiento DAV falló. Es posible que el script de repositorio 'pr
e-revprop-change' haya fallado o sea inexistente
Solution for windows users:
Make an c or cpp program, then compile it. Put the .exe into hoocks folder and rename to pre-revprop-change.exe
Program source code:
int main(void)
{
return 0;
}
Post a Comment