Thursday, August 19, 2010

svnsync example

copied from http://paste.lisp.org/display/99333

it really works

first create a file pre-revprop-change including the following output by cat. And the file needs to be executable.
That is,


$chmod +x pre-revprop-change


$ cat pre-revprop-change
#!/bin/sh
exit 0


$ ls -Alh pre-revprop-change
-rwxr-xr-x 1 pmezard staff 18B May 17 11:37 pre-revprop-change
$ svnadmin create repo
$ cp pre-revprop-change repo/hooks/
$ svnsync init --username svnsync file://`pwd`/repo http://wub.googlecode.com/svn
Copied properties for revision 0.
$ svnsync sync file://`pwd`/repo
Committed revision 1.
Copied properties for revision 1.
Transmitting file data ................................................................
Committed revision 2.
Copied properties for revision 2.
[...]

No comments: