SlideShare ist ein Scribd-Unternehmen logo
1 von 56
Downloaden Sie, um offline zu lesen
4
Imports
top skimming
      vs
   cvs2svn
One project at a time
repo/project/

                trunk/
                branches/

                tags/
http://cvs2svn.tigris.org/
      cvs2svn.html
Tags and Branching
Don’t be afraid
TAGS

  Symbolic naming
  for groups of files
Snapshot
Mixed revisions
Don’t commit to tags
BRANCHES
Repository forks
Trunk




Branch
Contain independent
      changes
Parallel commits
Generating releases
          and
space to experiement
Trunk stays stable
Each release is on a branch
Release points are tagged
Branch and tag
when appropriate
Quick example
Creating a release branch
svn mkdir -m ‘Created branches directory’
    svn://repo/svn/project/branches
svn mkdir -m ‘Created branches directory’
    svn://repo/svn/project/branches



svn copy -m ‘Creating release branch 1.0’
    svn://repo/svn/project/trunk
    svn://repo/svn/project/branches/RB-1.0
Checkout release branch to
   local working copy
svn co svn://svn/rep/branches/RB-1.0 rb1.0
Switch working copy
svn switch svn://svn/rep/branches/RB-1.0
Some time
 passes...
Generate a release
Tag correct files
       in correct branch

Hopefully the latest
  release branch
svn mkdir -m ‘Created tags directory’
    svn://repo/svn/project/tags



svn copy -m ‘Tagging release 1.0.0’
    svn://repo/svn/project/branches/RB-1.0
    svn://repo/svn/project/rags/REL-1.0.0
Check out a tagged release
svn co svn://svn/rep/tags/REL-1.0.0
Merging
Trunk stays stable
Merge branches back to
        trunk
Trunk


Merge

        Branch
svn update

svn merge -r37:HEAD
    svn://svn/rep/branches/RB-1.0

svn commit -m ‘Merged r37 to r38’
svn update

svn merge -r37:38
    svn://svn/rep/branches/RB-1.0

svn commit -m ‘Merged r37 to r38’
Good for spikes
Good for bug fixes
Love your IDE
IntelliJ IDEA
   Eclipse
  Komodo
    emacs
     vim
Bonus recipe!
Automated integration
SVN hooks
(just like CVS)
Automatic actions
Cruise Control
Harmony
Talk to SSG
slideshare.net/mza

Weitere ähnliche Inhalte

Was ist angesagt?

SVN Best Practices
SVN Best PracticesSVN Best Practices
SVN Best Practices
abackstrom
 
Version Control With Subversion
Version Control With SubversionVersion Control With Subversion
Version Control With Subversion
Samnang Chhun
 
Subversion client
Subversion clientSubversion client
Subversion client
rchakra
 
Introduction to Subversion and Google Project Hosting
Introduction to Subversion and Google Project HostingIntroduction to Subversion and Google Project Hosting
Introduction to Subversion and Google Project Hosting
Philip Johnson
 

Was ist angesagt? (20)

SVN Best Practices
SVN Best PracticesSVN Best Practices
SVN Best Practices
 
Getting Started With Subversion
Getting Started With SubversionGetting Started With Subversion
Getting Started With Subversion
 
Subversion workshop
Subversion workshopSubversion workshop
Subversion workshop
 
Version Control with SVN
Version Control with SVNVersion Control with SVN
Version Control with SVN
 
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
 
Version Control With Subversion
Version Control With SubversionVersion Control With Subversion
Version Control With Subversion
 
Subversion User Guide
Subversion User GuideSubversion User Guide
Subversion User Guide
 
Version Control with Subversion
Version Control with SubversionVersion Control with Subversion
Version Control with Subversion
 
svn
svnsvn
svn
 
Version Control and Continuous Integration
Version Control and Continuous IntegrationVersion Control and Continuous Integration
Version Control and Continuous Integration
 
Subversion client
Subversion clientSubversion client
Subversion client
 
Using svn
Using svnUsing svn
Using svn
 
Introduction to Subversion and Google Project Hosting
Introduction to Subversion and Google Project HostingIntroduction to Subversion and Google Project Hosting
Introduction to Subversion and Google Project Hosting
 
Svn tutorial
Svn tutorialSvn tutorial
Svn tutorial
 
Totalsvn Usage And Administration By Gopi
Totalsvn Usage And Administration By GopiTotalsvn Usage And Administration By Gopi
Totalsvn Usage And Administration By Gopi
 
A brief introduction to version control systems
A brief introduction to version control systemsA brief introduction to version control systems
A brief introduction to version control systems
 
SVN
SVNSVN
SVN
 
SVN Tutorial
SVN TutorialSVN Tutorial
SVN Tutorial
 
Introduction to Version Control
Introduction to Version ControlIntroduction to Version Control
Introduction to Version Control
 
SCM (Source Control Management) - Git Basic
SCM (Source Control Management) - Git Basic SCM (Source Control Management) - Git Basic
SCM (Source Control Management) - Git Basic
 

Andere mochten auch

Apache contribution-bar camp-colombo
Apache contribution-bar camp-colomboApache contribution-bar camp-colombo
Apache contribution-bar camp-colombo
Sagara Gunathunga
 

Andere mochten auch (11)

Introduce to SVN
Introduce to SVNIntroduce to SVN
Introduce to SVN
 
Hyper Introduction
Hyper IntroductionHyper Introduction
Hyper Introduction
 
Apache contribution-bar camp-colombo
Apache contribution-bar camp-colomboApache contribution-bar camp-colombo
Apache contribution-bar camp-colombo
 
Getting your open source company to contribution
Getting your open source company to contributionGetting your open source company to contribution
Getting your open source company to contribution
 
PyLadies Tokyo 二周年記念パーティ LT
PyLadies Tokyo 二周年記念パーティ LTPyLadies Tokyo 二周年記念パーティ LT
PyLadies Tokyo 二周年記念パーティ LT
 
SVN 2 Git
SVN 2 GitSVN 2 Git
SVN 2 Git
 
Golang
GolangGolang
Golang
 
ペアプロはリモートでもできる!
ペアプロはリモートでもできる!ペアプロはリモートでもできる!
ペアプロはリモートでもできる!
 
Effective Software Release Management
Effective Software Release ManagementEffective Software Release Management
Effective Software Release Management
 
Release Management: Successful Software Releases Start with a Plan
Release Management: Successful Software Releases Start with a PlanRelease Management: Successful Software Releases Start with a Plan
Release Management: Successful Software Releases Start with a Plan
 
The Physical Interface
The Physical InterfaceThe Physical Interface
The Physical Interface
 

Ähnlich wie Subversion Best Practices

Practical SVN for PHP Developers
Practical SVN for PHP DevelopersPractical SVN for PHP Developers
Practical SVN for PHP Developers
Lorna Mitchell
 
Subversion: A Getting Started Presentation
Subversion: A Getting Started PresentationSubversion: A Getting Started Presentation
Subversion: A Getting Started Presentation
Nap Ramirez
 
Maturing Locately Dev Processes
Maturing Locately Dev ProcessesMaturing Locately Dev Processes
Maturing Locately Dev Processes
mpklein
 

Ähnlich wie Subversion Best Practices (20)

Subversion
SubversionSubversion
Subversion
 
SVN Information
SVN Information  SVN Information
SVN Information
 
Practical SVN for PHP Developers
Practical SVN for PHP DevelopersPractical SVN for PHP Developers
Practical SVN for PHP Developers
 
Svn workflow
Svn workflowSvn workflow
Svn workflow
 
Subversionn Introduction at SuperMondays 2009-09-01
Subversionn Introduction at SuperMondays 2009-09-01Subversionn Introduction at SuperMondays 2009-09-01
Subversionn Introduction at SuperMondays 2009-09-01
 
Application versioning
Application versioningApplication versioning
Application versioning
 
Subversion Retake
Subversion RetakeSubversion Retake
Subversion Retake
 
Maven
MavenMaven
Maven
 
Burlington, VT PHP Users Group Subversion Presentation
Burlington, VT PHP Users Group Subversion PresentationBurlington, VT PHP Users Group Subversion Presentation
Burlington, VT PHP Users Group Subversion Presentation
 
Svn Subversion
Svn SubversionSvn Subversion
Svn Subversion
 
SVN essentials
SVN essentialsSVN essentials
SVN essentials
 
Subversion: A Getting Started Presentation
Subversion: A Getting Started PresentationSubversion: A Getting Started Presentation
Subversion: A Getting Started Presentation
 
Subversion howto
Subversion howtoSubversion howto
Subversion howto
 
Maturing Locately Dev Processes
Maturing Locately Dev ProcessesMaturing Locately Dev Processes
Maturing Locately Dev Processes
 
Subversion on .Unix
Subversion on .UnixSubversion on .Unix
Subversion on .Unix
 
Subversion on .Unix
Subversion on .UnixSubversion on .Unix
Subversion on .Unix
 
Subversion
SubversionSubversion
Subversion
 
Version Control System
Version Control SystemVersion Control System
Version Control System
 
Open Source tools overview
Open Source tools overviewOpen Source tools overview
Open Source tools overview
 
Wonderful World of Maven
Wonderful World of MavenWonderful World of Maven
Wonderful World of Maven
 

Mehr von Matt Wood

Mehr von Matt Wood (12)

Genomics in the Cloud
Genomics in the CloudGenomics in the Cloud
Genomics in the Cloud
 
How to make Friendfeeds and influence people
How to make Friendfeeds and influence peopleHow to make Friendfeeds and influence people
How to make Friendfeeds and influence people
 
Genomes On Rails
Genomes On RailsGenomes On Rails
Genomes On Rails
 
Genomes On Rails
Genomes On RailsGenomes On Rails
Genomes On Rails
 
Into The Wonderful
Into The WonderfulInto The Wonderful
Into The Wonderful
 
Extreme Informatics
Extreme InformaticsExtreme Informatics
Extreme Informatics
 
What can Bioinformaticians learn from YouTube?
What can Bioinformaticians learn from YouTube?What can Bioinformaticians learn from YouTube?
What can Bioinformaticians learn from YouTube?
 
The A to Z of developing for the web
The A to Z of developing for the webThe A to Z of developing for the web
The A to Z of developing for the web
 
Introduction to Scrum
Introduction to ScrumIntroduction to Scrum
Introduction to Scrum
 
30 Minutes With Rails
30 Minutes With Rails30 Minutes With Rails
30 Minutes With Rails
 
Lucene
LuceneLucene
Lucene
 
Introduction to the Semantic Web
Introduction to the Semantic WebIntroduction to the Semantic Web
Introduction to the Semantic Web
 

Kürzlich hochgeladen

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 

Kürzlich hochgeladen (20)

Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 

Subversion Best Practices