I'm looking for a part-time remote job.

Hire me


I'm the author of:

Mastering Redmine is a comprehensive guide with tips, tricks and best practices, and an easy-to-learn structure.

Check the book's project or

Buy the book

Social pages of the book:

By buying this book you also donate to Redmine (see this page).


Follow me:

Feature #2201

Add feature auto create struct directory for svn

Added by Minh Thien over 11 years ago. Updated over 11 years ago.

Status:
Incomplete
Priority:
Normal
Assignee:
Target version:
-
Start date:
30 Jul 2013
Due date:
% Done:

0%

External issue:

Description

Hi,
A standard directory svn include :

- trunk
- branches
- tags

Please add a option enable create struct directory for svn

Thanks.

History

#1 Updated by Andriy Lesyuk over 11 years ago

  • Status changed from New to Incomplete
  • Target version deleted (0.4.3)

Minh Thien, do you know which svn option should be used to create such directory structure?

#2 Updated by Terence Miller over 11 years ago

We just execute a script to create repos from template

$SVN_REP/ is our base folder for all scn repos
$SVN_REP/.repoTemplate/ is our svn template folder
$SVN_REP/.repoTemplate/hooks is our hooks template folder
$SVN_REP/.repoTemplate/initail is oir template scn folder structure

#!/bin/sh
if [ "$1" == "" ]
then
  echo "missing project name" 
else
  SVN_REP=/srv/svn
  svnadmin create "$1" 
  rm -r "$1/hooks" 
  ln -s "$SVN_REP/.repoTemplate/hooks" "$1/hooks" 
  chown wwwrun.www "$1" -R
  chmod 775 "$1" -R
  svn import "$SVN_REP/.repoTemplate/initial" file://$1 --message "Initial directories" 
fi

This script is triggered by reposman.rb which should be too by this plugin, but on a remote svn server

Also available in: Atom PDF

Terms of use | Privacy policy