CodeÂ revision controlÂ is very crucial part of development.Â It ensures you know who has changed which files and you are able to rollback to older versions in case new changes are breaking your website page or entire project.Â There are few options for you if you are looking into setting up code revision control.Â My preferred option is Subversion.Â Subversion is an open-source revision control system which is becoming more and more popular every day.Â It is very easy to install and setup your project under Subversion.Â If you want detailed instructions, please see the Subversion Book.Â They do a great job explaining what revision control is, what are the different types of revision control are out there, detailed instructions on installing subversion, doing administrator tasks, etc.Â Here are instructions on how to set up Subversion under CentOS.Â Same instructions apply to most linux distributions.Â
Easiest way to install subversion is via “yum” by typing:
yum install subversion
Once install is done, confirm it by typing “svn” at the prompt and you should get:
Type 'svn help' for usage.
At this point you can skip to “Setting up Subversion repository” part.
Obtain source from:Â Subversion.Â At the time of writing,Â latest (1.4.3) version can be obtain from this link:Â http://subversion.tigris.org/downloads/subversion-1.4.3.tar.gz
tar zxf subversion*
make && make install
after everything goes well, type svn at the prompt and you should get:
Type 'svn help' for usage.
Setting up Subversion repository
mkdir repos/branches -p
mkdir repos/trunk -p
mkdir repos/tags -p
svnadmin create /svn/demorepo
svn import --message "Initial set up" repos file:///svn/demorepo
chown .svnusers . -R
chmod 775 * -R
chmod +s db
Thats all there is to it to setup Subversion repository.Â At this point, you should add any users you want to have access to the repository by adding them to “svnusers” group.
DISCLAIMER: Please be smart and use code found on internet carefully. Make backups often. And yeah.. last but not least.. I am not responsible for any damage caused by this posting. Use at your own risk.
U made me save time , good work
Pingback: Subversion (SVN): How do you set up backup for your Subversion reposiotries? | Technology: Learn and Share
If you are looking how to configure subversion to work over http as well, check this out:
I and also my pals have already been checking the nice points from the blog while before long I had a terrible feeling I never expressed respect to the web site owner for those strategies. Most of the women appeared to be consequently passionate to read all of them and have now in fact been taking advantage of those things. Thank you for being quite kind and then for finding these kinds of smart resources millions of individuals are really desperate to understand about. Our sincere regret for not expressing gratitude to sooner.
Thanks so much for giving everyone remarkably wonderful possiblity to discover important secrets from here. It is often so enjoyable and as well , jam-packed with a great time for me and my office friends to search your site nearly three times in one week to see the newest guides you have got. And of course, I am just certainly astounded with your superb concepts served by you. Certain 1 ideas in this article are honestly the best we have all had.
Thank you a lot for giving everyone a very wonderful possiblity to discover important secrets from this web site. It’s always very sweet and also stuffed with fun for me personally and my office fellow workers to visit your blog nearly 3 times weekly to learn the new tips you will have. And of course, I’m at all times astounded considering the astounding solutions served by you. Selected 2 tips in this post are honestly the most impressive we have all had.