Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Mass upgrade of svn repositories
<?php
//This script updates all repositories in a huge root directory to current svnformat
//Generate said file with find . -maxdepth 1 -type d > list
$repos=file("list");
foreach($repos as $repo) {
$repo=trim($repo);
exec("svnadmin upgrade $repo",$out,$rc);
if($rc!=0)
echo "$repo failed\n";
else
echo "$repo succeeded\n";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.