• Like
  • Save
Svn Subversion
Upcoming SlideShare
Loading in...5
×

Svn Subversion

  • 2,054 views
Uploaded on

A Version Control tool.

A Version Control tool.

More in: Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
No Downloads

Views

Total Views
2,054
On Slideshare
0
From Embeds
0
Number of Embeds
1

Actions

Shares
Downloads
55
Comments
0
Likes
1

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. SVN - Subversion Ranjan Kumar C-DAC Mumbai
  • 2. Agenda
    • Introduction
    • Quick Start
    • Checkout and Recovery
    • Eclipse as a client
    • References
  • 3. Introduction
    • How to check whether SVN is already there in your linux system or not?
      • svn
      • svnadmin
      • svndumpfilter
      • svnlook
      • svnserve
      • svnsync
      • svnversion
  • 4. Quick Start
    • Subversion stores all data in a central repository. So first of all create a new repository.
    • $svnadmin create /var/svn/repos
    • Following files and directories are created in the directory /var/svn/repos
    • conf,
    • dav,
    • db
    • format
    • hooks
    • locks
    • README.txt
  • 5.
    • 2. Creating repository for your project say ‘myproject’.
    • /var/svn/repos/
    • |
    • |--- conf
    • | |--- svnserve.conf
    • |--- dav/
    • |--- db/
    • |--- format
    • |--- hooks/
    • |--- locks/
    • |--- README.txt
    • |--- myproject/
    • | |--- branches /
    • | |--- tags /
    • | |--- trunk /
  • 6.
    • 3. Create group of users.
    • $ groupadd myproject_developers
    • 4. Add users to the group.
    • How to add a new user(not already existing) ?
    • $ useradd -g myproject_developers sony
    • $ id sony
    • How to add existing user?
    • $ usermod -a -G myproject_developers mony
    • $ id mony
  • 7.
    • 5. Defining owner and groupowner of the directories db and myproject .
    • $ chown -Rvf root myproject
    • $ chgrp -Rvf myproject_developers myproject
    • $ chown -Rvf root /var/svn/repos/db
    • $ chgrp -Rvf myproject_developers /var/svn/repos/db
  • 8.
    • 6. Change the permissions of directories db and myproject .
    • $ chmod -Rvf u=+rwx myproject
    • $ chmod -Rvf g=+rwx myproject
    • $ chmod -Rvf u=+rwx /var/svn/repos
    • $ chmod -Rvf g=+rwx /var/svn/repos
  • 9.
    • 7. Import existing projects to the repository.
    • $ svn import myproject file:///var/svn/repos/myproject/trunk -m "initial import"
    • 8. Starting the svn server if it is not already running.
    • $ svnserve -d
    • $ svnserve -d -r /var/svn
  • 10.
    • Now its all done.
  • 11. Checkout and Recovery
    • How to checkout the working copy of the specific project repository?
    • $ svn checkout svn+ssh://mony@201.13.146.23/var/svn/repos/myproject/trunk workspace
    • How to recover the SVN repository?
    • $ svnadmin recover /var/svn/repos
    • $ chmod -Rvf u=+rwx /var/svn/repos
    • $ chmod -Rvf g=+rwx /var/svn/repos
  • 12. Eclipse as a client
    • http:// subclipse.tigris.org/install.html
  • 13. References
    • Subversion book is available at: http://svnbook.red-bean.com / For more information about the Subversion project, visit: http:// subversion.tigris.org . For eclipse plugin for subversion: http:// subclipse.tigris.org / .
    • More Details
    • http://ranjankumar.com/2008/09/26/svn-subversion /