Tuesday, 15 May 2012

SVN Repository


Start with SVN

· Download SVN win32SVN Server from : http://www.codeproject.com/Articles/18106/Subversion-TortoiseSVN-Installed-and-started-on-Wi
Or you can download VisualSVN and follow installation process.
o    Follow the instructions given in the page to install serve
  Download SVN Client tortoise from: http://tortoisesvn.net/downloads.html

Repository Structure

We will use Branch, Tags and Trunk folder structure as shown in Figure 1:

Figure 1
  • Trunk: Trunk is the main branch of development where current copy of working folder will be kept.
  • Branch: Isolating changes onto a separate line of development is called Branching. Branches are used to try out new feature without disturbing the main line of development. And as the new feature becomes stable the development branch is merged back into the main branch (trunk).
  • Tag: Tagging is to mark particular revisions (e.g. release version), so that you can recreate a certain build or environment at any time. Tags are used to create a static snapshot of the project at a particular stage. Tagging of the project is mostly done along with the successful build and generally it is done by the automated build process.
We are following version control mechanism. i.e.
        <major>.<minor>.<maintenance>
·         Major Release: Major releases introduce major new technologies and changes that render previous production releases obsolete.
·         Minor Release: Minor releases depict feature level enhancements. Addition of features between releases result in incremented minor release.
·         Maintenance Release:  This can include bug fix or any work for maintenance purpose.
Tentatively this structure can be change as per Requirement. E.g.
For Research & Development, folder structure can be:
·         Project Name
·         Documents

Back Up

From Command prompt run:
svnadmin dump "C:\SvnData\MyProject" > "C:\BackupMyProject.dump"

Restore

From Command prompt run:
svnadmin load "C:\SvnData\MyProject2" <  "C:\BackupMyProject.dump"

Set Folder wise authentication

Notes:

·         Always write comments while do any operation on SVN
·         Release new version to Tag
·         Use SVN standard folder structure

No comments:

Post a Comment