Saturday, October 20, 2007


Subversion is a free/open-source version control system. That is, Subversion manages files and directories, and the changes made to them, over time. This allows you to recover older versions of your data, or examine the history of how your data changed. Subversion can operate across networks, which allows it to be used by people on different computers. At some level, the ability for various people to modify and manage the same set of data from their respective locations fosters collaboration.

The goal of the Subversion project is to build a version control system that is a compelling replacement for CVS in the open source community

Install Subversion:

rpm –qa | grep subversion
yum install subversion

Plan and create the Repository Location:
Create directory for the repository
#mkdir /home/subversion
To create a repository use the below command
#svnadmin create /home/subversion

Importing Initial data into the Repository:

1. Import from local machine

svn import /home/ file:///home/subversion/ -m “Initial load for by logu”

2. Import from Remote machine using Subversion client

svn import /home/ svn+ssh:// –m “Initial import for by logu”

3. Import from Remote machine using TortoiseSVN

a. Select folder with project files
b. Right-click and select the TortoiseSVN Import option
c. Specify path of new project repository

Now, the repository has some project folders.

Getting working Copy for editing (For eg changing/editing the website code)

svn checkout svn+ssh:// /localhome/myproject/

So now you have a local copy of the project code. Enter your working copy and edit a file's contents.

Run svn commit to commit the new version of your file to the repository.

Run svn update to bring your working copy “up-to-date” with the repository.


No comments: