I'm trying to create a mirror repository of an online svn repository, so i can have the source code with the ability to synchronize the changes on the online repo. and start to checkout the code from the mirror repo. to make changes on it.
After doing the steps using svnsync
and after i did actually my first svnsync sync
command, no source code have been copied to the mirror repo.
Am i misunderstanding the use of svnsync
or i'm misunderstanding all the svn mirroring mechanism? How can i checkout the code from the mirror repo. and start to working on it?
Note I did the following to create a mirror svn repo.
$ svnadmin create dest
$ cat <<'EOF' > dest/hooks/pre-revprop-change
#!/bin/sh
USER="$3"
if [ "$USER" = "svnsync" ]; then exit 0; fi
echo "Only the svnsync user can change revprops" >&2
exit 1
EOF
$ chmod +x dest/hooks/pre-revprop-change
$ svnsync init --username svnsync file://`pwd`/dest http://thesource/source/repos
$ svnsync sync file://`pwd`/dest