3

I have an existing project “abc” with the path /home/abc. I want to set up a subversion repository in Ubuntu for this project. I have already installed subversion with the help the article “Setting Up an Ubuntu Subversion Server”. I did not understand the checkout portion and how to connect SVN to my “abc” project.

  • Also consider mercurial (hg), for most use cases it is better than svn. – ctrl-alt-delor Jun 16 '14 at 9:58
  • Look at hginit.com for quick start on Mercurial. – Danatela Jun 16 '14 at 10:02
  • At this time being I need to setup svn .When i open svn repo through browser it's shows me 403 forbidden error – user3676417 Jun 16 '14 at 10:57
  • to be able to access an svn repository using web browser you will need to setup webdav+apache (or your preferential web server), if you setup apache you will also need to setupbasic authentication on apache side . – akash Jun 16 '14 at 11:13
1

Assume you svn server URI is svn://yourhost/your_repo (or https://yourdomain.com/your_repo, if you're using WebDAV):

$ cd /home
$ svn import abc svn://yourhost/your_repo/abc -m "Initial commit message."
$ mv abc abc.bak
$ svn checkout svn://yourhost/your_repo/abc

Check that everything has been imported successfully and that you can checkout your code. Once you've verified that everything is okay, you can remove your backup:

$ rm -rf abc.bak

(BE CAREFUL--Keep your backup somewhere just in case!)

Now, /home/abc/ is a working copy of the your_repo repository.

  • when i access my svn repo through browser it's shows You don't have permission to access /svn/coderepository on this server – user3676417 Jun 16 '14 at 12:29
0

I cannot see the guide you mention because it is blocked in my workplace.

You must first create a project before you check it out, so do svnadmin create abc1. This will create a repository for you. I hope you have the privileges to access the newly created repo. Next, do svn co file://home/abc1 or svn co http://home/abc1 (if it is behind a webserver), then cp files from /home/abc to /home/abc1,svn add /home/abc1 and svn ci -m "whatever comment you put".

If this is not clear, please add some more information to your question and I will try to help further.

  • When I access my svn repo through browser it's shows You don't have permission to access /svn/coderepository on this server. as you mention before please help me how can I setup apache for that. – user3676417 Jun 16 '14 at 12:29
  • have you setup apache or any other webserver to serve the svn repository , if so can you share your configuration? – akash Jun 16 '14 at 12:32
  • In apache.conf file svn portion is commented # vim: syntax=apache ts=4 sw=4 sts=4 sr noet #<Location /svn> # DAV svn # SVNParentPath /home/svn # AuthType Basic # AuthName "My SVN Repositories" # AuthUserFile /etc/svn-auth # Require valid-user #</Location> Include /etc/phpmyadmin/apache.conf – user3676417 Jun 16 '14 at 12:37
  • 1) is webdav loaded on apache configuration, also have you created a password for accessing this over http if not htpasswd2 -c /etc/subversion/passwd [username] – akash Jun 16 '14 at 12:40
  • webdav is not loaded .Password is all ready created – user3676417 Jun 16 '14 at 12:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.