NumbersThis was insipired by the article "Subrversion for Designers" on think vitamin

Creation of SVN repository for project on server

  1. 1st I installed subversion on my server with apt-get install subversion
  2. 2nd I created a directory tree for version control under /usr/local/svn
  3. Each project is then contained within its own directory under this i.e. /usr/loca/svn/My_Project
  4. I then issue the command "svnadmin create /usr/local/svn/My_Project"
  5. Then I import the web site I'm developing into svn with the following: svn import /location_of_files file:///usr/local/svn/My Project/ -m "Initial import"
  6. This creates the 1st version in the repository.
  7. I then edit the svnserve conf file in the My_Project/conf directory to the following:
[general]anon-access = none

auth-access = write
password-db = userfile

This allows access to the repository via password control.

A userfile is created with the user name=password format

i.e.

[users]

UserName = Password

Accessing Repository

As I do most of my development on a windows machine I installed tortoise SVN http://tortoisesvn.net/ which is an SVN client that is implemented as a Windows shell extension, which makes it integrate seamlessly into the Windows explorer.

Create a Directory where you would like to store a working copy of the web site e.g. c:\web developement\some project

Right click on the directory and select the SVN checkout option on the context senstive menu.

Enter the location of the repository in the subsequent dialog box

SVN Dialog box

This will checkout a version of the web site to the local machine. These file can then be edited using the appropiate editor. Once happy with the files the documents are the checked back in by right clicking the root directory and selecting the SVN comit option.

The typical work cycle looks like this:

Update your working copy

svn update

Make changes

svn add

svn delete

svn copy

svn move

Examine your changes

svn status

svn diff

Possibly undo some changes

svn revert

Resolve Conflicts (Merge Others' Changes)

svn update

svn resolved

Commit your changes

svn commit

Link to subversion manual

Start Slide Show with PicLens Lite PicLens