SlideShare uma empresa Scribd logo
1 de 25
Baixar para ler offline
Subversion and TortoiseSVN – a Basic Primer Blake Medulan 2008
What is it? Subversion (abbreviated SVN) is an open source version control system that facilitates source code development by multiple software developers. ,[object Object]
SSH
Windows Shell,[object Object]
Vocabulary SVN : abbreviation for subversion Head Revision: The latest (or “youngest”) revision in the repository. Conflict: Two competing versions of the same file Working Folder:  Folder (local or server) that you check out the code to in order to edit Commit : Publish new files to repository Branch: a line of development that exists independently of another line, yet still shares a common history if you look far enough back in time.
Vocabulary Base : The revision number of an item in a working copy. If the item has been locally modified, this refers to the way the item appears without those local modifications. Prev: The revision immediately before the last revision in which an item changed. Technically, this boils down to COMMITTED#1. WebDAV: Distributed Authoring and Versioning.” RFC 2518
TortoiseSVN TortoiseSVN is a Windows shell extension that allows you to access SVN repositories within Windows Explorer.  Basically, any folder on your hard drive (or remote server) can be turned into an SVN folder and used to store a revision of an SVN repository
TortoiseSVN ,[object Object],[object Object]
The “Checkout” operation STEPS 1.   Create a working folder locally 2.   Right click on folder select  SVN Checkout 3.   Enter repository location (http://10.1.1.250/project_xxx) (http://subversion.webfeat.mci/project_xxx) 4.   Select working folder
The “Checkout” operation STEPS 5.   Enter your username and password 6.   Checkout process begins 7.   Working folder now contains latest version The green check means that the folder contains SVN files and is version controlled.
The “Commit” operation STEPS 1. Right-clicking on the file, sub-folder, or repository folder (whichever will cover the entire set of files/folders you have changed), and select SVN Commit....  ,[object Object],Only use accurate, descriptive comments so others can understand how the new version of code you are creating differs from the previous version!
Rename Files and Folders 1.  Checkout the file or folder to your machine 2.  Right-click on the file or folder, and select the menu option SVN Rename 3.  Type in the new name, and the icon for the file or folder will change to; 4.  Run a Commit and the repository will be updated with the new name
Delete Files and Folders 1.  Checkout the file or folder to your machine 2. Right-click on the file, and select the Delete... option from the TortoiseSVN menu:
Adding Files and Folders 1.  Checkout the latest version 2. Move the new file(s) and folder(s) to the location you want them in the repository 3. Right-click on the file(s) and folder(s) you want to add to the repository, and select the SVN Add. 4. To make the change stick, run a Commit and make sure the check boxes are checked for adding the items you want to add
Updates 1. Update your local snapshot of the repository to the latest version available by running an Update Operation. 2. Right-click on a folder containing versioned files and folders in it, and select the SVN Update... menu option. NOTE: Only the files already checked out will be updated (or deleted, if they were deleted in the repository since you last updated) Only the files already on your hard drive will be touched, and they can only be deleted or overwritten with the latest version of the file.
Conflicts – the scenario In the following example, we will be committing a change to the repository. Note: please don't actually make a commit to the repository for this tutorial - just read along! (We don't want the iris4 repo to get messed up with a bunch of 'SVN practice' commits.)  If you have modified any of the files you have checked out, added new files to the folder (or a sub-folder) where you have versioned files, or if you have deleted versioned files, you will have to commit these changes to the SVN repository to try and make them stick. I say try here because it is possible that the commit operation will fail if your changes conflict with someone else's changes
Conflicts When you try to commit your file you get the following message You then run an Update operation, and you will see the following:
Conflicts After you click OK, the folder containing main.cpp will now have several new, non-versioned files in it: 3 1 4 2
Conflicts main.cpp.mine 	This is what main.cpp v31 looked like after you changed it (no conflict markers). main.cpp.r31 This is what version 31 of main.cpp looked like (the file you checkout and then modified). main.cpp.r32 This is what the current version of main.cpp looks like (on the server).  main.cpp During the Update operation, conflict markers were inserted into this file.
Conflicts You can now right-click on the file main.cpp, and under the TortoiseSVN option, select Edit Conflicts:
Conflicts You can now right-click on the file main.cpp, and under the TortoiseSVN option, select Edit Conflicts:
Branching The Never-Branch system (Often used by nascent projects that don't yet have runnable code.) Users commit their day-to-day work on /trunk. Occasionally /trunk "breaks" (doesn't compile, or fails functional tests) when a user begins to commit a series of complicated changes. Pros: Very easy policy to follow. New developers have low barrier to entry. Nobody needs to learn how to branch or merge. Cons: Chaotic development, code could be unstable at any time.
Branching The Always-Branch system (Often used by projects that favor heavy management and supervision.) Each user creates/works on a private branch for every coding task. When coding is complete, someone (original coder, peer, or manager) reviews all private branch changes and merges them to /trunk. Pros: /trunk is guaranteed to be extremely stable at all times. Cons: Coders are artificially isolated from each other, possibly creating more merge conflicts than necessary. Requires users to do lots of extra merging. Occasionally /trunk "breaks" (doesn't compile, or fails functional tests) when a user begins to commit a series of complicated changes.
Branching The Branch-When-Needed system (This is the system used by the Subversion project.) Users commit their day-to-day work on /trunk. Rule #1: trunk must compile and pass regression tests at all times.  Rule #2: a single commit (changeset) must not be so large so as to discourage peer-review. Rule #3: if rules #1 and #2 come into conflict (i.e. impossible to make a series of small commits without disrupting the trunk), then the user should create a branch and commit a series of smaller changesets Pros: /trunk is guaranteed to be stable at all times. The hassle of branching/merging is somewhat rare. Cons: Adds a bit of burden to users' daily work: they must compile and test before every commit.
Overview

Mais conteúdo relacionado

Mais procurados

Version Control With Subversion
Version Control With SubversionVersion Control With Subversion
Version Control With SubversionSamnang Chhun
 
SVN Usage & Best Practices
SVN Usage & Best PracticesSVN Usage & Best Practices
SVN Usage & Best PracticesAshraf Fouad
 
SVN Tool Information : Best Practices
SVN Tool Information  : Best PracticesSVN Tool Information  : Best Practices
SVN Tool Information : Best PracticesMaidul Islam
 
FlashInTO SVN Presentation
FlashInTO SVN PresentationFlashInTO SVN Presentation
FlashInTO SVN PresentationMatthew Fabb
 
Practical SVN for PHP Developers
Practical SVN for PHP DevelopersPractical SVN for PHP Developers
Practical SVN for PHP DevelopersLorna Mitchell
 
Subversion Overview
Subversion OverviewSubversion Overview
Subversion Overviewpolarion
 
Introduction to Version Control
Introduction to Version ControlIntroduction to Version Control
Introduction to Version ControlJeremy Coates
 
Subversion workshop
Subversion workshopSubversion workshop
Subversion workshopTrafeX
 
Version control system
Version control systemVersion control system
Version control systemAryman Gautam
 
Version Control and Continuous Integration
Version Control and Continuous IntegrationVersion Control and Continuous Integration
Version Control and Continuous IntegrationGeff Henderson Chang
 
Version Control with Subversion
Version Control with SubversionVersion Control with Subversion
Version Control with SubversionGuy K. Kloss
 

Mais procurados (20)

Version Control With Subversion
Version Control With SubversionVersion Control With Subversion
Version Control With Subversion
 
SVN Usage & Best Practices
SVN Usage & Best PracticesSVN Usage & Best Practices
SVN Usage & Best Practices
 
Subversion User Guide
Subversion User GuideSubversion User Guide
Subversion User Guide
 
SVN Tool Information : Best Practices
SVN Tool Information  : Best PracticesSVN Tool Information  : Best Practices
SVN Tool Information : Best Practices
 
FlashInTO SVN Presentation
FlashInTO SVN PresentationFlashInTO SVN Presentation
FlashInTO SVN Presentation
 
Practical SVN for PHP Developers
Practical SVN for PHP DevelopersPractical SVN for PHP Developers
Practical SVN for PHP Developers
 
Subversion Overview
Subversion OverviewSubversion Overview
Subversion Overview
 
Svn Basic Tutorial
Svn Basic TutorialSvn Basic Tutorial
Svn Basic Tutorial
 
Using svn
Using svnUsing svn
Using svn
 
Introduction to Version Control
Introduction to Version ControlIntroduction to Version Control
Introduction to Version Control
 
Subversion workshop
Subversion workshopSubversion workshop
Subversion workshop
 
Version control system
Version control systemVersion control system
Version control system
 
Subversion
SubversionSubversion
Subversion
 
Version control
Version controlVersion control
Version control
 
Svn tutorial
Svn tutorialSvn tutorial
Svn tutorial
 
Version control
Version controlVersion control
Version control
 
Version Control and Continuous Integration
Version Control and Continuous IntegrationVersion Control and Continuous Integration
Version Control and Continuous Integration
 
Version Control with Subversion
Version Control with SubversionVersion Control with Subversion
Version Control with Subversion
 
Source Code management System
Source Code management SystemSource Code management System
Source Code management System
 
SVN Best Practices
SVN Best PracticesSVN Best Practices
SVN Best Practices
 

Destaque

Kosanostra presentacion
Kosanostra presentacionKosanostra presentacion
Kosanostra presentacionkosanostra
 
Multi office 200 cards per year
Multi office 200 cards per yearMulti office 200 cards per year
Multi office 200 cards per yearClear Line
 
Philosophy for Old Age
Philosophy for Old AgePhilosophy for Old Age
Philosophy for Old AgeCharles Joiner
 
ActionEmbedding
ActionEmbeddingActionEmbedding
ActionEmbeddingphilcowans
 
Uwa annual report_2007
Uwa annual report_2007Uwa annual report_2007
Uwa annual report_2007Fondo Unido
 
Share pointmysites gs_e
Share pointmysites gs_eShare pointmysites gs_e
Share pointmysites gs_ethebdot1
 
Kosanostra Present
Kosanostra PresentKosanostra Present
Kosanostra Presentkosanostra
 
Philosophy for Old Age
Philosophy for Old AgePhilosophy for Old Age
Philosophy for Old AgeCharles Joiner
 
Careers in law_libraries
Careers in law_librariesCareers in law_libraries
Careers in law_librariesKaren Sawatzky
 

Destaque (14)

Marketing
MarketingMarketing
Marketing
 
Kosanostra presentacion
Kosanostra presentacionKosanostra presentacion
Kosanostra presentacion
 
SR&ED
SR&EDSR&ED
SR&ED
 
Multi office 200 cards per year
Multi office 200 cards per yearMulti office 200 cards per year
Multi office 200 cards per year
 
Philosophy for Old Age
Philosophy for Old AgePhilosophy for Old Age
Philosophy for Old Age
 
ActionEmbedding
ActionEmbeddingActionEmbedding
ActionEmbedding
 
Bm 1
Bm 1Bm 1
Bm 1
 
Uwa annual report_2007
Uwa annual report_2007Uwa annual report_2007
Uwa annual report_2007
 
Share pointmysites gs_e
Share pointmysites gs_eShare pointmysites gs_e
Share pointmysites gs_e
 
Kosanostra Present
Kosanostra PresentKosanostra Present
Kosanostra Present
 
Philosophy for Old Age
Philosophy for Old AgePhilosophy for Old Age
Philosophy for Old Age
 
Careers in law_libraries
Careers in law_librariesCareers in law_libraries
Careers in law_libraries
 
Apam 1
Apam 1Apam 1
Apam 1
 
Duct Style Air Heaters
Duct Style Air HeatersDuct Style Air Heaters
Duct Style Air Heaters
 

Semelhante a Subversion

Subversion on .Unix
Subversion on .UnixSubversion on .Unix
Subversion on .UnixTrong Dinh
 
Subversion on .Unix
Subversion on .UnixSubversion on .Unix
Subversion on .UnixTrong Dinh
 
SVN Tutorial
SVN TutorialSVN Tutorial
SVN TutorialenggHeads
 
Introduction to Version Control and Configuration Management
Introduction to Version Control and Configuration ManagementIntroduction to Version Control and Configuration Management
Introduction to Version Control and Configuration ManagementPhilip Johnson
 
Digital Fabrication Studio 0.3 Information
Digital Fabrication Studio 0.3 InformationDigital Fabrication Studio 0.3 Information
Digital Fabrication Studio 0.3 InformationMassimo Menichinelli
 
Version Control Training - First Lego League
Version Control Training - First Lego LeagueVersion Control Training - First Lego League
Version Control Training - First Lego LeagueJeffrey T. Pollock
 
SVN session from PiTechnologies
SVN session from PiTechnologies SVN session from PiTechnologies
SVN session from PiTechnologies PiTechnologies
 
Version control with Subversion
Version control with SubversionVersion control with Subversion
Version control with SubversionO. R. Kumaran
 
Git your life for fun & profit
Git your life for fun & profitGit your life for fun & profit
Git your life for fun & profitGeeks Anonymes
 
02-version control(DevOps Series)
02-version control(DevOps Series)02-version control(DevOps Series)
02-version control(DevOps Series)Mohammed Shaban
 
Drupal Version Control & File System Basics
Drupal Version Control & File System BasicsDrupal Version Control & File System Basics
Drupal Version Control & File System BasicsJulia Kulla-Mader
 
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 PresentationBradley Holt
 
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
 

Semelhante a Subversion (20)

Subversion on .Unix
Subversion on .UnixSubversion on .Unix
Subversion on .Unix
 
Subversion on .Unix
Subversion on .UnixSubversion on .Unix
Subversion on .Unix
 
subversion.ppt
subversion.pptsubversion.ppt
subversion.ppt
 
SVN Tutorial
SVN TutorialSVN Tutorial
SVN Tutorial
 
Subversion
SubversionSubversion
Subversion
 
Source control
Source controlSource control
Source control
 
Introduction to Version Control and Configuration Management
Introduction to Version Control and Configuration ManagementIntroduction to Version Control and Configuration Management
Introduction to Version Control and Configuration Management
 
Digital Fabrication Studio 0.3 Information
Digital Fabrication Studio 0.3 InformationDigital Fabrication Studio 0.3 Information
Digital Fabrication Studio 0.3 Information
 
Version Control Training - First Lego League
Version Control Training - First Lego LeagueVersion Control Training - First Lego League
Version Control Training - First Lego League
 
SVN session from PiTechnologies
SVN session from PiTechnologies SVN session from PiTechnologies
SVN session from PiTechnologies
 
Version control with Subversion
Version control with SubversionVersion control with Subversion
Version control with Subversion
 
Git your life for fun & profit
Git your life for fun & profitGit your life for fun & profit
Git your life for fun & profit
 
02-version control(DevOps Series)
02-version control(DevOps Series)02-version control(DevOps Series)
02-version control(DevOps Series)
 
Git your life for fun & profit
Git your life for fun & profitGit your life for fun & profit
Git your life for fun & profit
 
svn
svnsvn
svn
 
Drupal Version Control & File System Basics
Drupal Version Control & File System BasicsDrupal Version Control & File System Basics
Drupal Version Control & File System Basics
 
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
 
Subversion
SubversionSubversion
Subversion
 
Subversion
SubversionSubversion
Subversion
 
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
 

Último

A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxLoriGlavin3
 
Bridging Between CAD & GIS: 6 Ways to Automate Your Data Integration
Bridging Between CAD & GIS:  6 Ways to Automate Your Data IntegrationBridging Between CAD & GIS:  6 Ways to Automate Your Data Integration
Bridging Between CAD & GIS: 6 Ways to Automate Your Data Integrationmarketing932765
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxLoriGlavin3
 
Design pattern talk by Kaya Weers - 2024 (v2)
Design pattern talk by Kaya Weers - 2024 (v2)Design pattern talk by Kaya Weers - 2024 (v2)
Design pattern talk by Kaya Weers - 2024 (v2)Kaya Weers
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfLoriGlavin3
 
Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Farhan Tariq
 
Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Hiroshi SHIBATA
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxLoriGlavin3
 
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Mark Goldstein
 
Microsoft 365 Copilot: How to boost your productivity with AI – Part one: Ado...
Microsoft 365 Copilot: How to boost your productivity with AI – Part one: Ado...Microsoft 365 Copilot: How to boost your productivity with AI – Part one: Ado...
Microsoft 365 Copilot: How to boost your productivity with AI – Part one: Ado...Nikki Chapple
 
Zeshan Sattar- Assessing the skill requirements and industry expectations for...
Zeshan Sattar- Assessing the skill requirements and industry expectations for...Zeshan Sattar- Assessing the skill requirements and industry expectations for...
Zeshan Sattar- Assessing the skill requirements and industry expectations for...itnewsafrica
 
Connecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfConnecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfNeo4j
 
React JS; all concepts. Contains React Features, JSX, functional & Class comp...
React JS; all concepts. Contains React Features, JSX, functional & Class comp...React JS; all concepts. Contains React Features, JSX, functional & Class comp...
React JS; all concepts. Contains React Features, JSX, functional & Class comp...Karmanjay Verma
 
Generative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfGenerative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfIngrid Airi González
 
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better StrongerModern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better Strongerpanagenda
 
Microservices, Docker deploy and Microservices source code in C#
Microservices, Docker deploy and Microservices source code in C#Microservices, Docker deploy and Microservices source code in C#
Microservices, Docker deploy and Microservices source code in C#Karmanjay Verma
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsRavi Sanghani
 
Testing tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesTesting tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesKari Kakkonen
 
Varsha Sewlal- Cyber Attacks on Critical Critical Infrastructure
Varsha Sewlal- Cyber Attacks on Critical Critical InfrastructureVarsha Sewlal- Cyber Attacks on Critical Critical Infrastructure
Varsha Sewlal- Cyber Attacks on Critical Critical Infrastructureitnewsafrica
 
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentEmixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentPim van der Noll
 

Último (20)

A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
 
Bridging Between CAD & GIS: 6 Ways to Automate Your Data Integration
Bridging Between CAD & GIS:  6 Ways to Automate Your Data IntegrationBridging Between CAD & GIS:  6 Ways to Automate Your Data Integration
Bridging Between CAD & GIS: 6 Ways to Automate Your Data Integration
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
 
Design pattern talk by Kaya Weers - 2024 (v2)
Design pattern talk by Kaya Weers - 2024 (v2)Design pattern talk by Kaya Weers - 2024 (v2)
Design pattern talk by Kaya Weers - 2024 (v2)
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdf
 
Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...
 
Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
 
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
 
Microsoft 365 Copilot: How to boost your productivity with AI – Part one: Ado...
Microsoft 365 Copilot: How to boost your productivity with AI – Part one: Ado...Microsoft 365 Copilot: How to boost your productivity with AI – Part one: Ado...
Microsoft 365 Copilot: How to boost your productivity with AI – Part one: Ado...
 
Zeshan Sattar- Assessing the skill requirements and industry expectations for...
Zeshan Sattar- Assessing the skill requirements and industry expectations for...Zeshan Sattar- Assessing the skill requirements and industry expectations for...
Zeshan Sattar- Assessing the skill requirements and industry expectations for...
 
Connecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfConnecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdf
 
React JS; all concepts. Contains React Features, JSX, functional & Class comp...
React JS; all concepts. Contains React Features, JSX, functional & Class comp...React JS; all concepts. Contains React Features, JSX, functional & Class comp...
React JS; all concepts. Contains React Features, JSX, functional & Class comp...
 
Generative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfGenerative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdf
 
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better StrongerModern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
 
Microservices, Docker deploy and Microservices source code in C#
Microservices, Docker deploy and Microservices source code in C#Microservices, Docker deploy and Microservices source code in C#
Microservices, Docker deploy and Microservices source code in C#
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and Insights
 
Testing tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesTesting tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examples
 
Varsha Sewlal- Cyber Attacks on Critical Critical Infrastructure
Varsha Sewlal- Cyber Attacks on Critical Critical InfrastructureVarsha Sewlal- Cyber Attacks on Critical Critical Infrastructure
Varsha Sewlal- Cyber Attacks on Critical Critical Infrastructure
 
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentEmixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
 

Subversion

  • 1. Subversion and TortoiseSVN – a Basic Primer Blake Medulan 2008
  • 2.
  • 3. SSH
  • 4.
  • 5. Vocabulary SVN : abbreviation for subversion Head Revision: The latest (or “youngest”) revision in the repository. Conflict: Two competing versions of the same file Working Folder: Folder (local or server) that you check out the code to in order to edit Commit : Publish new files to repository Branch: a line of development that exists independently of another line, yet still shares a common history if you look far enough back in time.
  • 6. Vocabulary Base : The revision number of an item in a working copy. If the item has been locally modified, this refers to the way the item appears without those local modifications. Prev: The revision immediately before the last revision in which an item changed. Technically, this boils down to COMMITTED#1. WebDAV: Distributed Authoring and Versioning.” RFC 2518
  • 7. TortoiseSVN TortoiseSVN is a Windows shell extension that allows you to access SVN repositories within Windows Explorer. Basically, any folder on your hard drive (or remote server) can be turned into an SVN folder and used to store a revision of an SVN repository
  • 8.
  • 9. The “Checkout” operation STEPS 1. Create a working folder locally 2. Right click on folder select SVN Checkout 3. Enter repository location (http://10.1.1.250/project_xxx) (http://subversion.webfeat.mci/project_xxx) 4. Select working folder
  • 10. The “Checkout” operation STEPS 5. Enter your username and password 6. Checkout process begins 7. Working folder now contains latest version The green check means that the folder contains SVN files and is version controlled.
  • 11.
  • 12. Rename Files and Folders 1. Checkout the file or folder to your machine 2. Right-click on the file or folder, and select the menu option SVN Rename 3. Type in the new name, and the icon for the file or folder will change to; 4. Run a Commit and the repository will be updated with the new name
  • 13. Delete Files and Folders 1. Checkout the file or folder to your machine 2. Right-click on the file, and select the Delete... option from the TortoiseSVN menu:
  • 14. Adding Files and Folders 1. Checkout the latest version 2. Move the new file(s) and folder(s) to the location you want them in the repository 3. Right-click on the file(s) and folder(s) you want to add to the repository, and select the SVN Add. 4. To make the change stick, run a Commit and make sure the check boxes are checked for adding the items you want to add
  • 15. Updates 1. Update your local snapshot of the repository to the latest version available by running an Update Operation. 2. Right-click on a folder containing versioned files and folders in it, and select the SVN Update... menu option. NOTE: Only the files already checked out will be updated (or deleted, if they were deleted in the repository since you last updated) Only the files already on your hard drive will be touched, and they can only be deleted or overwritten with the latest version of the file.
  • 16. Conflicts – the scenario In the following example, we will be committing a change to the repository. Note: please don't actually make a commit to the repository for this tutorial - just read along! (We don't want the iris4 repo to get messed up with a bunch of 'SVN practice' commits.) If you have modified any of the files you have checked out, added new files to the folder (or a sub-folder) where you have versioned files, or if you have deleted versioned files, you will have to commit these changes to the SVN repository to try and make them stick. I say try here because it is possible that the commit operation will fail if your changes conflict with someone else's changes
  • 17. Conflicts When you try to commit your file you get the following message You then run an Update operation, and you will see the following:
  • 18. Conflicts After you click OK, the folder containing main.cpp will now have several new, non-versioned files in it: 3 1 4 2
  • 19. Conflicts main.cpp.mine This is what main.cpp v31 looked like after you changed it (no conflict markers). main.cpp.r31 This is what version 31 of main.cpp looked like (the file you checkout and then modified). main.cpp.r32 This is what the current version of main.cpp looks like (on the server). main.cpp During the Update operation, conflict markers were inserted into this file.
  • 20. Conflicts You can now right-click on the file main.cpp, and under the TortoiseSVN option, select Edit Conflicts:
  • 21. Conflicts You can now right-click on the file main.cpp, and under the TortoiseSVN option, select Edit Conflicts:
  • 22. Branching The Never-Branch system (Often used by nascent projects that don't yet have runnable code.) Users commit their day-to-day work on /trunk. Occasionally /trunk "breaks" (doesn't compile, or fails functional tests) when a user begins to commit a series of complicated changes. Pros: Very easy policy to follow. New developers have low barrier to entry. Nobody needs to learn how to branch or merge. Cons: Chaotic development, code could be unstable at any time.
  • 23. Branching The Always-Branch system (Often used by projects that favor heavy management and supervision.) Each user creates/works on a private branch for every coding task. When coding is complete, someone (original coder, peer, or manager) reviews all private branch changes and merges them to /trunk. Pros: /trunk is guaranteed to be extremely stable at all times. Cons: Coders are artificially isolated from each other, possibly creating more merge conflicts than necessary. Requires users to do lots of extra merging. Occasionally /trunk "breaks" (doesn't compile, or fails functional tests) when a user begins to commit a series of complicated changes.
  • 24. Branching The Branch-When-Needed system (This is the system used by the Subversion project.) Users commit their day-to-day work on /trunk. Rule #1: trunk must compile and pass regression tests at all times. Rule #2: a single commit (changeset) must not be so large so as to discourage peer-review. Rule #3: if rules #1 and #2 come into conflict (i.e. impossible to make a series of small commits without disrupting the trunk), then the user should create a branch and commit a series of smaller changesets Pros: /trunk is guaranteed to be stable at all times. The hassle of branching/merging is somewhat rare. Cons: Adds a bit of burden to users' daily work: they must compile and test before every commit.