Version Control. Why version control? zScenario 1: yYour program is working yYou change "just one thing" yYour program breaks yYou change it back yYour.

Slides:



Advertisements
Similar presentations
What is Computer Software?. Hardware vs Software Got to have both to get the job done!
Advertisements

1. What is Subversion? Why do we need CM? Basic concepts Repositories Options Setup Clients Options Setup Operation Troubleshooting Slide 2.
Warren Jones, Fluke Co., Eugene Kramer, Remedy Co. Introduction to CVS 1999 Concurrent Versions System Overview of CVS architecture. Repository structure.
Warren Jones, Fluke Co., Eugene Kramer, Remedy Co. Introduction to CVS 1999 Concurrent Versions System Overview of CVS architecture. Repository structure.
Version Control System (Sub)Version Control (SVN).
Let Use SVN(Subversion) Interaction Lab. Hyo-Geun Ahn
2-May-15 Version Control. 2 Why version control? Scenario 1: Your program is working You change “just one thing” Your program breaks You change it back.
Software Configuration Management Donna Albino LIS489, December 3, 2014.
Summer of Code (SOC) Presentation Fred R McClurg Girish H Mhatre Version Control Overview.
Dedi Rahmawan Putra  Shared Document  Conventional Ways  Common Problems  What is TortoiseSVN  Advantages over another tools  Basic Concepts.
Using subversion COMP 2400 Prof. Chris GauthierDickey.
CVS Selim Çıracı Ahmet Kara Metin Tekkalmaz. CVS – Open Source Version Control System Outline What are Version Control Systems? And why do we need them?
Version Control Systems Phil Pratt-Szeliga Fall 2010.
CVS II: Parallelizing Software Development Author: Brian Berliner John Tully.
Low level CASE: Source Code Management. Source Code Management  Also known as Configuration Management  Source Code Managers are tools that: –Archive.
Source Code Management Or Configuration Management: How I learned to Stop Worrying and Hate My Co-workers Less.
1 CMPT 275 Software Engineering Revision Control.
Source Control Repositories for Enabling Team Working Svetlin Nakov Telerik Corporation
G51FSE Version Control Naisan Benatar. Lecture 5 - Version Control 2 On today’s menu... The problems with lots of code and lots of people Version control.
By Steven Campbell and Erik Boone.  Sharing projects by putting them into a central repository.  Checking out copies of projects from the repository.
Version Control. What is Version Control? Manages file sharing for Concurrent Development Keeps track of changes with Version Control SubVersion (SVN)
Version Control with git. Version Control Version control is a system that records changes to a file or set of files over time so that you can recall.
Git A distributed version control system 23-Aug-15.
Version Control with Subversion. What is Version Control Good For? Maintaining project/file history - so you don’t have to worry about it Managing collaboration.
1 Topics for this Lecture Software maintenance in general Source control systems (intro to svn)
Sumedha Rubasinghe October,2009 Introduction to Programming Tools.
Development tools cvs, tkdiff, JBuilder, building GATE from the sources.
Version Control with Subversion Quick Reference of Subversion.
Subversion (SVN) Tutorial for CS421 Dan Fleck Spring 2010.
Git A distributed version control system Powerpoint credited to University of PA And modified by Pepper 8-Oct-15.
Warmup A programmer’s wife tells him, “Would you mind going to the store and picking up a loaf of bread? Also, if they have eggs, get a dozen.” The programmer.
Object-Oriented Software Engineering Using UNIX groups and Subversion Estimated Time: minutes “Unix is user-friendly. It's just very selective about.
Object-Oriented Software Engineering Using UNIX groups and CVS Estimated Time: minutes.
Version control Using Git Version control, using Git1.
SharePoint document libraries I: Introduction to sharing files Sharjah Higher Colleges of Technology presents:
Object-Oriented Analysis & Design Subversion. Contents  Configuration management  The repository  Versioning  Tags  Branches  Subversion 2.
Version Control.
(Sub)Version Control. 2 Keep large teams working on the same code Back up your work so you don't lose it all Compare changes to previous versions Revert.
Subversion (SVN) A Revision Control System Successor to CVS Carlos Armas Hervey Allen.
Introduction to Version Control SE-2030 Dr. Rob Hasker 1 Based on material at and slides written.
Copyright © 2015 – Curt Hill Version Control Systems Why use? What systems? What functions?
CSE 219 Computer Science III CVS
Configuring Sourceforge’s CVS to work with Forte (3.0 or later) on WindowsNT and Windows 2000 Specific for MAExplorer.sourceforge.net Written by Eric Shen,
RCS The Revision Control System. To Be Covered… An RCS overview The RCS command set Some useful things Where it can be used Alternatives to RCS.
1 Brief Introduction to Revision Control Ric Holt.
Version Control with SVN Images from TortoiseSVN documentation
Refactoring and Synchronization with the StarTeam Plug-in for Eclipse  Jim Wogulis  Principal Architect, Borland Software Corporation.
Version Control CSC 517 John Slankas. Version Control Managing files and directories, and the changes made to them over time. - Adapted from “Version.
12 CVS Mauro Jaskelioff (originally by Gail Hopkins)
Version Control System
Introduction to Text Based Coding. We’re learning to explore how text based programming works You will display and enter text into a window You will use.
Version Control and SVN ECE 297. Why Do We Need Version Control?
TEAM FOUNDATION VERSION CONTROL AN OVERVIEW AND WALKTHROUGH By: Michael Mallar.
Subversion (SVN) Tutorial for CS421 Dan Fleck Spring 2010.
DIGITAL REPOSITORIES CGDD Job Description… Senior Tools Programmer – pulled August 4 th, 2011 from Gamasutra.
1 Subversion Kate Hedstrom April Version Control Software System for managing source files –For groups of people working on the same code –When.
BIT 285: ( Web) Application Programming Lecture 07 : Tuesday, January 27, 2015 Git.
Git A distributed version control system Powerpoint credited to University of PA And modified by Pepper 28-Jun-16.
Source Control Dr. Scott Schaefer. Version Control Systems Allow for maintenance and archiving of multiple versions of code / other files Designed for.
Version Control with Subversion
A Simple Introduction to Git: a distributed version-control system
SVN intro (review).
Source Control Dr. Scott Schaefer.
Development and Deployment
slides borrowed and adapted from Alex Mariakis and CSE 390a
Lab: ssh, scp, gdb, valgrind
Concurrent Versions System
Systems Analysis and Design I
Version Control 101 with Subversion
Presentation transcript:

Version Control

Why version control? zScenario 1: yYour program is working yYou change "just one thing" yYour program breaks yYou change it back yYour program is still broken--why? zHas this ever happened to you?

Why version control? (part 2) zYour program worked well enough yesterday zYou made a lot of improvements last night... y...but you haven't gotten them to work yet zYou need to turn in your program now zHas this ever happened to you?

Version control for teams zScenario: yYou change one part of a program--it works yYour co-worker changes another part--it works yYou put them together--it doesn't work ySome change in one part must have broken something in the other part yWhat were all the changes?

Teams (part 2) zScenario: yYou make a number of improvements to a class yYour co-worker makes a number of different improvements to the same class zHow can you merge these changes?

diff tools zThere are a number of tools that help you spot changes (differences) between two files  Tools include diff, rcsdiff, jDiff, etc. zOf course, they won't help unless you kept a copy of the older version zDifferencing tools are useful for finding a small number of differences in a few files

jDiff  jDiff is a plugin for the jEdit editor zAdvantages: yEverything is color coded yUses synchronized scrolling yIt's inside an editor--you can make changes directly zDisadvantages:  Not stand-alone, but must be used within jDiff  Just a diff tool, not a complete solution

jDiff

Version control systems zA version control system (often called a source code control system) does these things: yKeeps multiple (older and newer) versions of everything (not just source code) yRequests comments regarding every change yAllows "check in" and "check out" of files so you know which files someone else is working on yDisplays differences between versions

sccs  sccs is Source Code Control System (UNIX)  sccs keeps multiple versions of a complete directory  Storage requirements are small, because sccs : ykeeps the original documents ykeeps the changes needed to go from one version to the next ygenerates any version when you ask for it

rcs  rcs is Revision Control System (also UNIX)  rcs is like sccs, and does the same things, but  sccs keeps the originals, and applies changes to get to newer versions  rcs keeps the current versions, and applies changes to get back to older versions  (opinion) You usually want to work with the newer versions, so rcs is usually the better choice

rcs commands  Create a directory for your rcs files  co -l file -- check out a file and lock it yLocking means you can check the file back in  ci file -- check in a revision (put file under rcs)  rcs -l file -- lock a file you already checked out  (needed when you checked it out and forgot the -l )  rcsdiff files -- report differences between files  merge files -- merges two files into original file yNot magic--you have to check the results

Who cares about UNIX?  CVS is probably the most popular version control system on Windows  CVS is based on rcs  I don't know CVS very well  CVS is built into JBuilder and CodeWarrior z"There are two ways to run CVS on Windows 95/NT. The first is as a client, talking to a CVS server on a Unix box. This is the recommended setup and is commonly used."

CVS commands zcvs checkout file zcvs commit file  cvs diff file zBut these are CVS commands under UNIX! zPopular GUIs on Windows: ytkCVS yjCVS yWinCVS

CVS home page zhttp://

The End