Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SVN Create Directories like trunk etc

Tags:

How can I use svn command line or svnadmin to create the recommended directory structure trunk etc. I did mkdir but nothing shows up? how do I create these directories?

Not able to connect using tools, so just want to create these basic directories first.

So let me know how to use command line or help with this: SVNAdmin Create Repository URL not working

like image 633
NextDroid Avatar asked Nov 16 '12 00:11

NextDroid


People also ask

How to create working copy in SVN?

Copy all source code folders and files into C:\myproject\trunk (for example, C:\myproject\trunk\guicode). Create a repository folder (for example, C:\svnrepo). Change the directory to C:\svnrepo. Change the directory to C:\myproject\trunk.

What is a SVN working copy?

A Subversion working copy is your own private working area, which looks like any other ordinary directory on your system. It contains a COPY of those files which you will have been editing on the website.


1 Answers

Did you read the Subversion manual? This is one of the best open source instruction manuals in the world. Go through the first few chapters and try the examples. Heck, they show you exactly how to do what you want.

You are talking about two separate structures: The repository directory that may be on a completely different machine, and the working directory where you've checked out your work.

You need to create a repository. Once you do that, you can use the svn mkdir command to either make your directory structure without a working directory:

$ svn mkdir --parents -m" Creating basic directory structure" \
    svn://my_repo/trunk svn://my_repo/branches svn://my_repo/tags

Or, you can checkout a copy of the repository in into a working directory and do everything from there:

C> svn co svn://my_repo workingdir
C> cd workingdir
C> svn mkdir trunk tags branches
C> svn commit -m"Creating basic directory structure"

Notice that you will not see the directories directly inside your repository. However, you can use the svn ls command to see the structure:

C> svn ls -R svn://my_repo
like image 76
David W. Avatar answered Oct 02 '22 23:10

David W.