Automate Setting Up New SVN Repositories

If you follow best practices for Subversion, then you create the standard repository layout, with trunk, tags, and branches directories. In fact these are usually my first three commits of any new repository. I’ve completed these steps so many times in the last few months, that I can practically type it in my sleep. Tired of repeating myself, I started digging into shell scripting to automate this task and released the fruits of my labor here: SVN: New Repos.

This script will prompt you for the URL of your new repository, and the name of the working copy folder you want to use. Then it will create the trunk, tags, and branches directories, directly in the repository. If your working copy folder exists, it will import any files it finds there, and back up the folder (just in case). Finally, it will check out the trunk folder as a new working copy.

Hope this saves you some typing.

0 Response to “Automate Setting Up New SVN Repositories”


  • No Comments

Leave a Reply