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?
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.
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
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.
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:
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With