danhoc21
danhoc21

Reputation: 11

How to set up a repository with Subversion and TortoiseSVN

I have Subversion set up on a server in my room and I have TortoiseSVN installed on a client computer and have correctly configured the Subversion service. I don't know how to set up the correct URL to connect to the server because the server doesn't have a URL or anything attached. If i open up the TortoiseSVN repo browser and type in svn://nameofServer then the connection works but I don't know how to set up a repository to connect to something like svn://nameOfServer/TestProject.

Also I would like to know how to have a password attached to viewing the files and checking them out.

Upvotes: 0

Views: 2654

Answers (2)

Albin Sunnanbo
Albin Sunnanbo

Reputation: 47058

To create a repository you need to run the command svnadmin create <name> on the server.

Edit:
The repository you create must be under the repository root. As you access your repository with svn://... I assume you are running svnserve to host your repositories.
Have a look at the documentation for svnserve (section "svnserve as daemon") there you can find out how the repository root is set. If the server is running Linux you can type

cat /etc/init.d/svnserve

to find out how svnserve is started and where the reposiory root is located.

Upvotes: 0

Wim Coenen
Wim Coenen

Reputation: 66783

In your case, the best option to make the repository available over the network is probably svnserve.

edit: I'll give an example. If you have created a repository at d:\svnrepositories\foo, and you run this:

svnserve -d -r d:\svnrepositories

then you will be able to reach your repository at svn://host/foo, where host is the host name or IP address of your server.

Upvotes: 1

Related Questions