svn resuming aborted checkout

Viewed 25909

Situation - have enormous repository, slow and unreliable link (read - vpn that breaks from time to time).

We are subject of frequent branching, moving things, so every now and then whole new branch should be taken from the repository (checkout).

Is there a way to 'resume' broken checkouts? Is it safe to do svn checkout with same parameters and expect it to skip what is downloaded and download what is not?

7 Answers

I had to checkout a big repository over an unreliable connection, so the co failed many times. Based on the answers here, I've ended up with a little loop, trying continuously the checkout (works with bash and other unix shells):

while ! svn co http://myserver/svn/myrepo/
do
    (cd myrepo; svn cleanup)
done

The same with some decoration if you want to know at the end how many retrials were needed:

i=0
while ! svn co http://myserver/svn/myrepo/
do
    i=$[i+1]
    (cd myrepo; svn cleanup)
done
echo $i

Related