I\'ve got an svn repo with no trunk dir. I\'d like to create the trunk and branches dirs, and move all my files (currently in the root) into trunk.
Creating trunk wo
You're using a MacBook, so let's assume bash for your shell:
# Select all the relevant files/directories (less trunk, branches, and tags)
ls * | egrep -v "trunk|branches|tags" > /tmp/files
# Move them within the repository
svn move $(cat /tmp/files) trunk
This will work as long as you don't have spaces in your file names. If you do, then use this instead:
# Select all the relevant files/directories (less trunk, branches, and tags)
ls * | egrep -v "trunk|branches|tags" > /tmp/files
# Move them within the repository
cat /tmp/files | while read file ; do
svn move "${file}" trunk
done