Create a SVN Repository from the client.

12,174

Solution 1

According to a post in the SVN mailing list (and common knowledge among SVN users), it's not possible to create a repository remotely using a SVN client. What you can do, for example, is write a web application that creates repositories on the server if you are so inclined. But if the server isn't in your control, you're out of luck.

Solution 2

If you were to use something like Subversion Edge for your server you get a web UI for configuring and managing the server, which allows you to create repositories from your web browser. Also, Subversion Edge has a REST API that lets you work with the server programmatically.

Solution 3

So, this may not be the solution you are looking for, but I had a similar situation (I had some interns that didn't have admin privs on the server, but I didn't want to have to create new repos for them every time they created a new project and wanted to check it in. Similarly, I didn't want to have to fire up CollabNet to make a new repo every time I wanted to check in some brand new simple test project.)

I created a personalized "root" repository on the server (e.g. "InternNameProjects") without the standard Trunk/Branches/Tabs structure, and gave the url to the intern. He can now use TSVN to Browse Repo at that url, and create a new folder there. Then use the Import In Place instructions to place the new project into that folder (two steps: 1. check out over the top, 2. commit).

Share:
12,174
liuroot
Author by

liuroot

Updated on June 28, 2022

Comments

  • liuroot
    liuroot almost 2 years

    Lets say that I just started a new Project, and want to create a repository for it, being just a client, not the actual admin of the SVN server. How do i do it?

    I can create a repository at the server itself, but I can't create one repository from the client, for example Tortoise, I can create branches, tags etc, but no repository.

    obs: the create repository of tortoise creates it locally, not at actual svn server. Thanks.

  • liuroot
    liuroot about 12 years
    the server is under my control, just want another users to have the capabilities.