Feature #4877

Reposman.rb autocreate SVN default directories

Added by Bruno Prado over 9 years ago. Updated over 8 years ago.

Status:NewStart date:2010-02-18
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:SCM extra
Target version:-
Resolution:

Description

In my company, as we use only SVN, we modified reposman.rb so it creates the three default folders - tags, braches, trunk - as it's executed, so the structure created doesn't increment the revision.
Here's the modification:

101 $autodir = ["trunk", "tags", "branches"]

288 scm_module.create(repos_path)
289 raise "svn mkdir #{$svn_url}#{project.identifier}/#{$autodir.at(0)} #{$svn_url}#{project.identifier}/#{$autodir.at(1)} #{$svn_url}#{project.identifier}/#{$autodir.at(2)} failed" unless system("svn", "mkdir",$svn_url+project.identifier+"/"+$autodir.at(0),$svn_url+project.identifier+"/"+$autodir.at(1),$svn_url+project.identifier+"/"+$autodir.at(2),"-m \"Autocreate #{$autodir.at(1)}\"")
290 log("\tautocreating directory for repository #{repos_path}: ");

History

#1 Updated by Jean-Philippe Lang over 9 years ago

  • Category set to SCM

#2 Updated by Toshi MARUYAMA over 8 years ago

  • Category changed from SCM to SCM extra

Also available in: Atom PDF