Talk:Subversion/Basics

From Gentoo Linux Wiki

Jump to: navigation, search

Contents

[edit] split

Split the apache part of this into the Apache howto series and give a link rather than keep both guides together.

[edit] berkdb vs fsfs

You wrote "BerkleyDB is the recommended way of managing stored data into the repository."
Not any more, the recommended way is to use FSFS. You can read more about it at http://svnbook.red-bean.com/en/1.1/ch05.html#svn-ch-5-sect-1.3.2
One quote: "The only real argument against FSFS is its relative immaturity compared to Berkeley DB." You can use FSFS with:

svnadmin create  --fs-type fsfs /path/to/repos

[edit] svnserve and ssh

The article says: ...alowing the user, $USER, to access his files from ssh. This implies the use of the svnserve server;... Afaik, svnserve is an unencrypted transport layer for subversion, i.e. it has nothing to do with ssh. Besides the apache methods, you can use svnserve (insecure) or ssh (secure) to do the subversion data transfer, but they don't depend on each other.

[edit] This articles didn't help me

This article is for setting up subversion, yet most of it is spent explaining di rectory hierarchies; I tried to setup subversion but just got frusterated. The next day I got everything working correctly because of this MUCH better article I found: HOWTO_Apache2_with_subversion_SVN_and_DAV.

[edit] Very Confusing

My Apologies to the author of this HOWTO, but I find it very confusing. It seems to jump from one topic to another without a real connection between those topics, or a stepwise explanation. Either there is much left out or it is meant for pro users only - either way, after reading it two times, I'm still not sure how to properly configure the server, and what directories to create where, or even where to start.

-- I Agree -- Confusing Gentoo Subversion Wiki!!! --- I too agree, a very confusing article, more confusing then just a mess of emails stuck on a wiki page! This article needs to be re-written!!! Any takers? Would be quite easy to do.

For those waiting on simpler directions, here's a brief breakdown.

Since people say FSFS is better then Berkley DB and I sometimes find working with DB difficult: echo "dev-util/subversion -nowebdav -berkdb" emerge subvserion

Creating subversion (Trunk, tags and branches folder might be important latter on!)

$ svnadmin create /home/roger/Repository $ svn import /home/roger/src/myproject file:///home/roger/Repository/trunk/myproject -m "Initial Import" $ svn checkout file:///home/roger/Repository/trunk/myproject

[edit] Creating a repository named '.svn' is VERY BAD

Creating a repository named '.svn' is VERY BAD

.svn is a special name dedicated by Subversion for use by Working Copy control files. To encourage people to create repositories named that is inviting extreme confusion.


[edit] Is adding users to the apache group a security concern?

I'm by no means experienced with this sort of thing, but it strikes me that adding users to the 'apache' group is asking for trouble, especially if you're running a webserver on the same machine. Although I could be wrong...would it not be better to rewrite the ebuild so that svnserve and /var/svn defaults to an 'svn' group when running the ebuild config, and then re-write that to encourage the same?

[edit] Creating subversion project directory structure with svnadmin

Can't you just use svnadmin to create a project directory structure?

[edit] start svnserve with different port

1. These are not working
 * /etc/init.d/svnserve start --listen_port=3001
 * add below line to /etc/conf.d/svnserve and restart svnserve
  * LISTEN_PORT=3001
  * PORT=3001
  
1. any idea?

If you realy need it: edit /etc/conf.d/svnserve

SVNSERVE_OPTS="--root=/var/svn --listen-port=3001 --listen-host=3001"

--62.104.102.127 13:41, 7 October 2007 (UTC)

[edit] svnserve USE

It appears that the USE variable "svnserve" is now required to install svnserve. --Ortzinator 17:22, 7 March 2008 (UTC)

[edit] default runlevel

Adding svnserve to the default runlevel does not get svn running on a reboot. Could someone explain how to set up SVN without any fancy apache stuff?

As far I know, it is possible to use SVN over SSH. This has worked for me. Good luck.
Personal tools