How to set up SVN user account?

Hi folks,

I'm trying to create an SVN repository location in Xcode. That's my ultimate goal.

However, I think I have to first define an SVN user. Is this correct?

I have SVN version 1.6.2 installed on my MacBook.

I've created an SVN repository in /usr/local/svn from the command line using my own user name.

In the Xcode Preferences SVN Pane for setting up access to an SVN server, I'm currently getting this error: "Access denied". I think it's related to user permissions to access the repository.

I know remote access to SVN servers requires that each user who wishes to access the repository be granted permission in some SVN config file, right?

Do I need to do this for local access too? My SVN access will be local (not networked). If so, how to do this?

Since I'm posting this, I'll go ahead and ask the other questions regarding how to fill in the fields on the Xcode Preferences SVN Pane for configuring the SVN access.

1. What URL do I specify for local access to a repo at /usr/local/svn ?

2. What to enter for the "Host"? "localhost" is not recognized.

3. What to enter for "Port:" ?


Many thanks,....

MacBook Pro 17", Mac OS X (10.5.6)

Posted on Nov 5, 2009 7:39 PM

Reply
20 replies

Nov 8, 2009 7:35 PM in response to rhimbo

Get some good info from: http://www.switchingtomac.com/tutorials/setup-a-subversion-server-on-leopard/ I don't use the user password item. You do have to have the modules load, you know? Then go to: http://developer.apple.com/mac/articles/server/subversionwithxcode3.html and a little ways down page are permissions for web server or svn server. depends on your usage. Between both links, you ought to get permissions correct.(and your permission(s) question.) And see following image for XCode questions. If you do this correctly you will be able to see your repository, etc by filling in browser window with http://localhost/yourrepository/workingcopy Also try this link. A few years back I found it and it's simple and good: http://www.rubyrobot.org/tutorial/subversion-with-mac-os-x
Disregard the Subversion references. it is still an svn primer. You really have to try with the links I posted. Too much to detail by hand from me. It will work for you. Feel free to ask more.
User uploaded file

Message was edited by: doug pennington

Jan 3, 2010 7:44 PM in response to doug pennington

Hello again,

Well, it's been a while since I posted my original question... hope someone is still monitoring this thread....

I've read the suggested documents and decided to work with this one:
http://developer.apple.com/mac/articles/server/subversionwithxcode3.html

I decided to go with the svnserve approach.

I'm stuck at the point where I'm defining my SVN repository in Xcode. I'm trying to define a repository connection in Xcode. See figure 11 in the above mentioned Apple documentation page.

The problem I have right now is that I don't get the "Authenticated" status at the bottom of the sheet. It still says "Host Offline" even after I've entered my password and hit "Apply". I'm using the password for my normal user log in name, which is also the log in name referenced in the URL for the repository connection.

Any ideas?

Much thanks....

Jan 4, 2010 10:20 AM in response to rhimbo

Here is mine with same repository by SVN by svnserve. Get your URL in SysPref/Sharing below Comp Names where it says:Computers on your local, blah blah... Note my host and user entries. Follow suit with your proper entries. Is mandolin the name of your Home directory? If so it(url) should read:svn+ssh://mandolin@whatIstatedjustabove A tracing address to find data was lacking I believe. ie: needs a machine name/address. Let me know rhimbo. Man, I'll never be a teacher the way I wrote this. But it works.
User uploaded file

Jan 4, 2010 9:24 PM in response to doug pennington

"mandolin"is my host name. The Computer Name in SysPrefs/Sharing is "mandolin".

"vartan" is my user name. Home directory is /Users/vartan

My SVN repo is in /Library/Subversion/Repository

The only difference I see between yours and mine is the ".local" appended to the host name. I changed my Xcode "Configure SCM Repositories..." sheet to use the ".local" hostname like yours.

Now I get the error shown in the image below.

User uploaded file

Below is the SysPrefs/Sharing sheet showing my hostname.

User uploaded file

Did I miss some obvious difference between your setup and mine? I can't see it.

Thanks...

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How to set up SVN user account?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.