I was fixing several subversion repositories. I didn’t have the standard branches, tags, trunk structure set up. Here’s a script to help with that.
Use it like… sh ~/.svn-fix.sh https://mysvnserver.net/svn/hello-project trunk
#!/bin/bash
$repo="$1"
$dest="$2"
entries=`svn list $repo | grep -v $dest`
svn mkdir $repo/$dest
for d in $entries
do
svn move $repo/$d $repo/$dest/ -m "moved into $dest"
done