Skip to content

Instantly share code, notes, and snippets.

@msmuenchen
Created November 18, 2015 11:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save msmuenchen/d9d1523e7b713bf7d58a to your computer and use it in GitHub Desktop.
Save msmuenchen/d9d1523e7b713bf7d58a to your computer and use it in GitHub Desktop.
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