Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create a subversion repository with standard layout?

Tags:

repository

svn

Is it possible to create a new SVN repository which is automatically structured by the SVN standard repository layout (trunk, branches, tags) via commandline (svnadmin create)?

Or do I always have to create thos directories manually?

like image 949
PageFault Avatar asked Oct 04 '10 20:10

PageFault


People also ask

What is the default repository layout in subversion?

Most subversion tools create a default repository layout with /trunk, /branches and /tags. The documentation also recommends not using separate repositories for each project, so that code can be more easily shared. Following that advice has led to me having a repository with the following layout: and so on, you get the idea.

How to setup a Subversion repository using Apache webserver?

Below is a step by step instruction on how to compile subversion from the source code, and how to setup a repository using apache webserver. 1, Compiling subversion and its dependencies from source code 2, Creating a user for apache and modifying httpd.conf 4, Setting up httpd.conf to serve the created repository 5, Setting up authentication

What is subversion and how does it work?

That is, Subversion manages files and directories over time. A tree of files is placed into a central repository. The repository is much like an ordinary file server, except that it remembers every change ever made to your files and directories. This allows you to recover older versions of your data, or examine the history of how your data changed.

Should I follow conventions for my Subversion repository?

If your repository is accessible to the public, following these conventions might make it easier for users that have accessed other Subversion repositories to find what they are looking for. There are two commonly used layouts:


1 Answers

Since it is only a suggested layout it doesn't do that out of the box. If you are using linux, here is a simple script I use for that:

#!/bin/bash
url=svn://somewhere
svn mkdir $url/$1/trunk $url/$1/branches $url/$1/tags -m "New project $1" --parents
like image 72
Daff Avatar answered Oct 30 '22 23:10

Daff