SlideShare une entreprise Scribd logo
1  sur  14
Subversion
last minute
survival crash
course     Fazreil Amreen bin Abdul Jalil
Agenda

•   introduction to Versioning System
•   SVN as Versioning System
•   Tools to do SVN
•   SVN features
•   Checking out SVN
•   Committing into SVN
•   Update and Reverts in SVN
•   Handling Conflicts (might not be applicable for non-developers)
•   Q and A



                                                                      (2)
introduction to Versioning System

• “The Revision Control System (RCS) is a software
  implementation of revision control that automates the
  storing, retrieval, logging, identification, and merging of
  revisions.” –
  Wikipedia, http://en.wikipedia.org/wiki/Revision_Contro
  l_System
• Works like a folder in your computer but with history
  (versioning)
• Other than SVN, there are also
  Clearcase, CVS, Git, Mercurial, Team Foundation
  Server, Visual Source Safe.
• Also known as Change Management.

                                                                (3)
SVN as Versioning System

• Works like a folder in your computer but with history
  (versioning).

• Able to modify the files offline and sync to server when
  online.




                                                             (4)
Tools to do SVN

• Commonly used SVN client is the Tortoise SVN.




                                                  (5)
SVN features




               (6)
SVN features
                           To show history of
                           the object

                                                To browse the whole
                                                repository

                           To check working copy for
                           modification made




                                      To update working copy to
                                      certain revision
               To perform undo




                                                                  (7)
Checking out SVN

• Download configuration items from the SVN server for
  the first time.

1. Open Repo-Browser

2. Right click on directory

3. Check out

4. The configuration item will be downloaded into the
   selected directory

                                                         (8)
Committing into SVN

• Send modified CI back to server

1. Right click on the file / directory

2. click SVN Commit

3. The SVN will open a dialog to preview modifications

4. Enter comment and start committing



                                                         (9)
Update and Reverts in SVN

• Fetch the latest version from SVN Server.
1. Right click on the directory
2. choose update.

• Fetch specific revision from SVN Server.
1. Right click on the directory
2. Tortoise SVN > Update to revision

• Unmodified files and directories are not affected by the
  update.


                                                             ( 10 )
Handling Conflicts

        • Conflict happens when 2 or more commit overlaps the
trunk
          changes made on the same file.
 p                    Two working copies
                  1
                       were checked out
 q


                      Working                   Working
                      Copy A                    Copy B
                  2

  r            Modified Working                           4
             Copy A checked in first

                       Subversion detects outdated
                  3   version and prevents check-in
      Outdated!
                       of modified Working Copy B



  s
                                                                ( 11 )
Beyond SVN, integration to other tools

• Integrating SVN with other tools makes it easier to for us
  to perform SVN operations within the tools.
• IDEs like Netbeans, Eclipse has plug-ins to enable
  integration with SVN.
• Developers need not to move out from the IDE to
  commit and update their working copy.

• Hudson /Jenkins is taking source codes from SVN, there
  are plugins to help Hudson/Jenkins.




                                                               ( 12 )
Q and A

• Subversion can store picture, zipfile and audio files?
• Yes. But please avoid storing generated files.

• Can it work on Windows, Mac, and other Linux distros?
• Yes. And each platform has their own client.

• What happen if I screw up my working copy?
• Delete your working copy and create a new one.

• How can I screw up my working copy?
• If you don’t update regularly and having too much
  conflict that you don’t really want to resolve.
                                                           ( 13 )
Emergency Contact:

@fab52
facebook.com/fazreil
             THANK YOU

Contenu connexe

Tendances

SVN Tutorial
SVN TutorialSVN Tutorial
SVN TutorialenggHeads
 
SVN Tool Information : Best Practices
SVN Tool Information  : Best PracticesSVN Tool Information  : Best Practices
SVN Tool Information : Best PracticesMaidul Islam
 
Subversion Overview
Subversion OverviewSubversion Overview
Subversion Overviewpolarion
 
Subversion Best Practices
Subversion Best PracticesSubversion Best Practices
Subversion Best PracticesMatt Wood
 
Nguyễn Vũ Hưng: Subversion best practices
Nguyễn Vũ Hưng: Subversion best practicesNguyễn Vũ Hưng: Subversion best practices
Nguyễn Vũ Hưng: Subversion best practicesVu Hung Nguyen
 
SVN Usage & Best Practices
SVN Usage & Best PracticesSVN Usage & Best Practices
SVN Usage & Best PracticesAshraf Fouad
 
Source version control using subversion
Source version control using subversionSource version control using subversion
Source version control using subversionMangesh Bhujbal
 
Version Control and Continuous Integration
Version Control and Continuous IntegrationVersion Control and Continuous Integration
Version Control and Continuous IntegrationGeff Henderson Chang
 
Getting Started With Subversion
Getting Started With SubversionGetting Started With Subversion
Getting Started With SubversionJordan Hatch
 
Subversion workshop
Subversion workshopSubversion workshop
Subversion workshopTrafeX
 
Docker - fast dev faster testing
Docker - fast dev faster testingDocker - fast dev faster testing
Docker - fast dev faster testingGuilherme Pires
 
Revision Control DrupalCampLA
Revision Control DrupalCampLARevision Control DrupalCampLA
Revision Control DrupalCampLATom Friedhof
 
SVN Best Practices
SVN Best PracticesSVN Best Practices
SVN Best Practicesabackstrom
 

Tendances (20)

SVN Tutorial
SVN TutorialSVN Tutorial
SVN Tutorial
 
SVN
SVNSVN
SVN
 
SVN Tool Information : Best Practices
SVN Tool Information  : Best PracticesSVN Tool Information  : Best Practices
SVN Tool Information : Best Practices
 
Subversion Overview
Subversion OverviewSubversion Overview
Subversion Overview
 
Subversion
SubversionSubversion
Subversion
 
SVN Basics
SVN BasicsSVN Basics
SVN Basics
 
Subversion Best Practices
Subversion Best PracticesSubversion Best Practices
Subversion Best Practices
 
Nguyễn Vũ Hưng: Subversion best practices
Nguyễn Vũ Hưng: Subversion best practicesNguyễn Vũ Hưng: Subversion best practices
Nguyễn Vũ Hưng: Subversion best practices
 
SVN Usage & Best Practices
SVN Usage & Best PracticesSVN Usage & Best Practices
SVN Usage & Best Practices
 
Svn Basic Tutorial
Svn Basic TutorialSvn Basic Tutorial
Svn Basic Tutorial
 
Subversion User Guide
Subversion User GuideSubversion User Guide
Subversion User Guide
 
Source version control using subversion
Source version control using subversionSource version control using subversion
Source version control using subversion
 
Version Control and Continuous Integration
Version Control and Continuous IntegrationVersion Control and Continuous Integration
Version Control and Continuous Integration
 
svn
svnsvn
svn
 
Getting Started With Subversion
Getting Started With SubversionGetting Started With Subversion
Getting Started With Subversion
 
Subversion workshop
Subversion workshopSubversion workshop
Subversion workshop
 
Docker - fast dev faster testing
Docker - fast dev faster testingDocker - fast dev faster testing
Docker - fast dev faster testing
 
Revision Control DrupalCampLA
Revision Control DrupalCampLARevision Control DrupalCampLA
Revision Control DrupalCampLA
 
SVN Best Practices
SVN Best PracticesSVN Best Practices
SVN Best Practices
 
Servlet session 4
Servlet   session 4Servlet   session 4
Servlet session 4
 

En vedette

Punto de vista de los sistemas
Punto de vista de los sistemasPunto de vista de los sistemas
Punto de vista de los sistemasFran Alvarez
 
Permanent Learner - Content words
Permanent Learner - Content wordsPermanent Learner - Content words
Permanent Learner - Content wordsPaula Carnasciali
 
Blue Prism Developer Accreditation Certificate - Danny Maylin - Bank of New Y...
Blue Prism Developer Accreditation Certificate - Danny Maylin - Bank of New Y...Blue Prism Developer Accreditation Certificate - Danny Maylin - Bank of New Y...
Blue Prism Developer Accreditation Certificate - Danny Maylin - Bank of New Y...Danny Maylin
 
What, Why and How of Governance in RPA
What, Why and How of Governance  in RPAWhat, Why and How of Governance  in RPA
What, Why and How of Governance in RPAMohit Sharma (GAICD)
 
Robotic Process Automation: A Cohesive View
Robotic Process Automation: A Cohesive ViewRobotic Process Automation: A Cohesive View
Robotic Process Automation: A Cohesive ViewChristopher Manfredi
 
The Business Case for Robotic Process Automation (RPA)
The Business Case for Robotic Process Automation (RPA)The Business Case for Robotic Process Automation (RPA)
The Business Case for Robotic Process Automation (RPA)Joe Tawfik
 
Robotic Process Automation for Financial Services
Robotic Process Automation for Financial ServicesRobotic Process Automation for Financial Services
Robotic Process Automation for Financial ServicesAppian
 

En vedette (12)

Quien lo dijo
Quien lo dijoQuien lo dijo
Quien lo dijo
 
Punto de vista de los sistemas
Punto de vista de los sistemasPunto de vista de los sistemas
Punto de vista de los sistemas
 
Fecumpleamor
FecumpleamorFecumpleamor
Fecumpleamor
 
53211820
5321182053211820
53211820
 
Acqua...Acque.
Acqua...Acque.Acqua...Acque.
Acqua...Acque.
 
Mujer de verdad
Mujer de verdadMujer de verdad
Mujer de verdad
 
Permanent Learner - Content words
Permanent Learner - Content wordsPermanent Learner - Content words
Permanent Learner - Content words
 
Blue Prism Developer Accreditation Certificate - Danny Maylin - Bank of New Y...
Blue Prism Developer Accreditation Certificate - Danny Maylin - Bank of New Y...Blue Prism Developer Accreditation Certificate - Danny Maylin - Bank of New Y...
Blue Prism Developer Accreditation Certificate - Danny Maylin - Bank of New Y...
 
What, Why and How of Governance in RPA
What, Why and How of Governance  in RPAWhat, Why and How of Governance  in RPA
What, Why and How of Governance in RPA
 
Robotic Process Automation: A Cohesive View
Robotic Process Automation: A Cohesive ViewRobotic Process Automation: A Cohesive View
Robotic Process Automation: A Cohesive View
 
The Business Case for Robotic Process Automation (RPA)
The Business Case for Robotic Process Automation (RPA)The Business Case for Robotic Process Automation (RPA)
The Business Case for Robotic Process Automation (RPA)
 
Robotic Process Automation for Financial Services
Robotic Process Automation for Financial ServicesRobotic Process Automation for Financial Services
Robotic Process Automation for Financial Services
 

Similaire à Subversion last minute survival crash course

Version control with subversion
Version control with subversionVersion control with subversion
Version control with subversionxprayc
 
Git vs Subversion: ¿Cuando elegir uno u otro?
Git vs Subversion: ¿Cuando elegir uno u otro?Git vs Subversion: ¿Cuando elegir uno u otro?
Git vs Subversion: ¿Cuando elegir uno u otro?Paradigma Digital
 
Difference between team foundation server and subversion
Difference between team foundation server and subversionDifference between team foundation server and subversion
Difference between team foundation server and subversionUmar Ali
 
How to use CVS applied to SOLab
How to use CVS applied to SOLabHow to use CVS applied to SOLab
How to use CVS applied to SOLabPablo Arriazu
 
Ci jenkins maven svn
Ci jenkins maven svnCi jenkins maven svn
Ci jenkins maven svnAnkur Goyal
 
Jenkins advance topic
Jenkins advance topicJenkins advance topic
Jenkins advance topicGourav Varma
 
Linux13 concurrent versions system
Linux13 concurrent versions systemLinux13 concurrent versions system
Linux13 concurrent versions systemJainul Musani
 
version controlling in software development
version controlling in software developmentversion controlling in software development
version controlling in software developmentAnushka Perera
 
Embedded Systems: Lecture 10: Introduction to Git & GitHub (Part 1)
Embedded Systems: Lecture 10: Introduction to Git & GitHub (Part 1)Embedded Systems: Lecture 10: Introduction to Git & GitHub (Part 1)
Embedded Systems: Lecture 10: Introduction to Git & GitHub (Part 1)Ahmed El-Arabawy
 
Source control - what you need to know
Source control - what you need to knowSource control - what you need to know
Source control - what you need to knowdaveymni
 
Subversion on .Unix
Subversion on .UnixSubversion on .Unix
Subversion on .UnixTrong Dinh
 
Subversion on .Unix
Subversion on .UnixSubversion on .Unix
Subversion on .UnixTrong Dinh
 
DevOps Tutorial For Beginners | DevOps Tutorial | DevOps Tools | DevOps Train...
DevOps Tutorial For Beginners | DevOps Tutorial | DevOps Tools | DevOps Train...DevOps Tutorial For Beginners | DevOps Tutorial | DevOps Tools | DevOps Train...
DevOps Tutorial For Beginners | DevOps Tutorial | DevOps Tools | DevOps Train...Simplilearn
 
Introduction to Version Control
Introduction to Version ControlIntroduction to Version Control
Introduction to Version ControlWei-Tsung Su
 

Similaire à Subversion last minute survival crash course (20)

Random House
Random HouseRandom House
Random House
 
Subversion
SubversionSubversion
Subversion
 
Version control with subversion
Version control with subversionVersion control with subversion
Version control with subversion
 
Git vs Subversion: ¿Cuando elegir uno u otro?
Git vs Subversion: ¿Cuando elegir uno u otro?Git vs Subversion: ¿Cuando elegir uno u otro?
Git vs Subversion: ¿Cuando elegir uno u otro?
 
Difference between team foundation server and subversion
Difference between team foundation server and subversionDifference between team foundation server and subversion
Difference between team foundation server and subversion
 
How to use CVS applied to SOLab
How to use CVS applied to SOLabHow to use CVS applied to SOLab
How to use CVS applied to SOLab
 
Subversion and bug tracking
Subversion and bug trackingSubversion and bug tracking
Subversion and bug tracking
 
Ci jenkins maven svn
Ci jenkins maven svnCi jenkins maven svn
Ci jenkins maven svn
 
Tsvn17
Tsvn17Tsvn17
Tsvn17
 
Jenkins advance topic
Jenkins advance topicJenkins advance topic
Jenkins advance topic
 
Linux13 concurrent versions system
Linux13 concurrent versions systemLinux13 concurrent versions system
Linux13 concurrent versions system
 
Git
GitGit
Git
 
version controlling in software development
version controlling in software developmentversion controlling in software development
version controlling in software development
 
Embedded Systems: Lecture 10: Introduction to Git & GitHub (Part 1)
Embedded Systems: Lecture 10: Introduction to Git & GitHub (Part 1)Embedded Systems: Lecture 10: Introduction to Git & GitHub (Part 1)
Embedded Systems: Lecture 10: Introduction to Git & GitHub (Part 1)
 
Jenkins.pdf
Jenkins.pdfJenkins.pdf
Jenkins.pdf
 
Source control - what you need to know
Source control - what you need to knowSource control - what you need to know
Source control - what you need to know
 
Subversion on .Unix
Subversion on .UnixSubversion on .Unix
Subversion on .Unix
 
Subversion on .Unix
Subversion on .UnixSubversion on .Unix
Subversion on .Unix
 
DevOps Tutorial For Beginners | DevOps Tutorial | DevOps Tools | DevOps Train...
DevOps Tutorial For Beginners | DevOps Tutorial | DevOps Tools | DevOps Train...DevOps Tutorial For Beginners | DevOps Tutorial | DevOps Tools | DevOps Train...
DevOps Tutorial For Beginners | DevOps Tutorial | DevOps Tools | DevOps Train...
 
Introduction to Version Control
Introduction to Version ControlIntroduction to Version Control
Introduction to Version Control
 

Subversion last minute survival crash course

  • 1. Subversion last minute survival crash course Fazreil Amreen bin Abdul Jalil
  • 2. Agenda • introduction to Versioning System • SVN as Versioning System • Tools to do SVN • SVN features • Checking out SVN • Committing into SVN • Update and Reverts in SVN • Handling Conflicts (might not be applicable for non-developers) • Q and A (2)
  • 3. introduction to Versioning System • “The Revision Control System (RCS) is a software implementation of revision control that automates the storing, retrieval, logging, identification, and merging of revisions.” – Wikipedia, http://en.wikipedia.org/wiki/Revision_Contro l_System • Works like a folder in your computer but with history (versioning) • Other than SVN, there are also Clearcase, CVS, Git, Mercurial, Team Foundation Server, Visual Source Safe. • Also known as Change Management. (3)
  • 4. SVN as Versioning System • Works like a folder in your computer but with history (versioning). • Able to modify the files offline and sync to server when online. (4)
  • 5. Tools to do SVN • Commonly used SVN client is the Tortoise SVN. (5)
  • 7. SVN features To show history of the object To browse the whole repository To check working copy for modification made To update working copy to certain revision To perform undo (7)
  • 8. Checking out SVN • Download configuration items from the SVN server for the first time. 1. Open Repo-Browser 2. Right click on directory 3. Check out 4. The configuration item will be downloaded into the selected directory (8)
  • 9. Committing into SVN • Send modified CI back to server 1. Right click on the file / directory 2. click SVN Commit 3. The SVN will open a dialog to preview modifications 4. Enter comment and start committing (9)
  • 10. Update and Reverts in SVN • Fetch the latest version from SVN Server. 1. Right click on the directory 2. choose update. • Fetch specific revision from SVN Server. 1. Right click on the directory 2. Tortoise SVN > Update to revision • Unmodified files and directories are not affected by the update. ( 10 )
  • 11. Handling Conflicts • Conflict happens when 2 or more commit overlaps the trunk changes made on the same file. p Two working copies 1 were checked out q Working Working Copy A Copy B 2 r Modified Working 4 Copy A checked in first Subversion detects outdated 3 version and prevents check-in Outdated! of modified Working Copy B s ( 11 )
  • 12. Beyond SVN, integration to other tools • Integrating SVN with other tools makes it easier to for us to perform SVN operations within the tools. • IDEs like Netbeans, Eclipse has plug-ins to enable integration with SVN. • Developers need not to move out from the IDE to commit and update their working copy. • Hudson /Jenkins is taking source codes from SVN, there are plugins to help Hudson/Jenkins. ( 12 )
  • 13. Q and A • Subversion can store picture, zipfile and audio files? • Yes. But please avoid storing generated files. • Can it work on Windows, Mac, and other Linux distros? • Yes. And each platform has their own client. • What happen if I screw up my working copy? • Delete your working copy and create a new one. • How can I screw up my working copy? • If you don’t update regularly and having too much conflict that you don’t really want to resolve. ( 13 )