SlideShare ist ein Scribd-Unternehmen logo
1 von 25
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

Weitere Àhnliche Inhalte

Was ist angesagt?

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
 
Subversion User Guide
Subversion User GuideSubversion User Guide
Subversion User GuideMuthuselvam RS
 
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
 
Svn Basic Tutorial
Svn Basic TutorialSvn Basic Tutorial
Svn Basic TutorialMarco Pivetta
 
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
 
Svn tutorial
Svn tutorialSvn tutorial
Svn tutorialkalyansiri
 
Version control
Version controlVersion control
Version controlSaman Najafi
 
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
 
SVN Best Practices
SVN Best PracticesSVN Best Practices
SVN Best PracticesESRI Bulgaria
 

Was ist angesagt? (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
 

Andere mochten auch

Kosanostra presentacion
Kosanostra presentacionKosanostra presentacion
Kosanostra presentacionkosanostra
 
SR&ED
SR&EDSR&ED
SR&EDthebdot1
 
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
 
Apam 1
Apam 1Apam 1
Apam 1veckita
 
Duct Style Air Heaters
Duct Style Air HeatersDuct Style Air Heaters
Duct Style Air HeatersStelter & Brinck
 

Andere mochten auch (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
 

Ähnlich wie 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
 
subversion.ppt
subversion.pptsubversion.ppt
subversion.pptTahaKhayyam
 
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
 

Ähnlich wie 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
 

KĂŒrzlich hochgeladen

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...Drew Madelung
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
[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.pdfhans926745
 
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...Miguel AraĂșjo
 
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 2024The Digital Insurer
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?Igalia
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
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?Antenna Manufacturer Coco
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
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 2024Rafal Los
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
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.pdfUK Journal
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 

KĂŒrzlich hochgeladen (20)

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...
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
[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...
 
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
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
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?
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
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
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
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
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 

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.