Repository Templates

Repository templates are default folder structures and files that you can use when creating a new repository. When creating a repository, the template you choose determines the default content and folder structure of that repository.

Repository templates are a great way to enforce certain directory naming conventions, or provide starter files and code for common project types.

Sublime ships with two templates: Default and Blank.

The Default template has the following folder structure:

/branches
/tags
/trunk
  /docs
  /src

The Blank template is empty.

Creating a new Template

To create a new repository template, follow these steps:

Open the Templates folder beneath your Sublime installation directory. Create a new folder for your new repository template.

New Template Folder

Within that folder, create any folder structure you want. Most subversion repositories start with branches, tags, and trunk as the root folders, but you can create any structure you like. You may also copy default files into the folders you create.

If you have common document templates or code resources, place them in your Repository Template to ensure that all new repositories get these resources automatically.

Template Structure

Open the templates.txt located in the root of the Templates folder. Create a new section for your new template as follows:

New Template

The first line should be the name of the folder you created surrounded by brackets The second line is the display name of the template The third line is a short description

Save templates.txt and restart IIS by opening a command prompt and entering C:\> iisreset. You should now see your new template when you try to create a new repository.

Template in UI