fundamentals of software development 1slide 1 version control – outline what is it?what is it? why...

4
Fundamentals of Softw are Development 1 Slide 1 Version control – Version control – outline outline What is it? What is it? Why do it? Why do it? How to do it? How to do it?

Post on 20-Dec-2015

212 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Fundamentals of Software Development 1Slide 1 Version control – outline What is it?What is it? Why do it?Why do it? How to do it?How to do it?

Fundamentals of Software Development 1

Slide 1

Version control – outlineVersion control – outline

• What is it?What is it?• Why do it?Why do it?• How to do it?How to do it?

Page 2: Fundamentals of Software Development 1Slide 1 Version control – outline What is it?What is it? Why do it?Why do it? How to do it?How to do it?

Fundamentals of Software Development 1

Slide 2

Version Version control:control:

what is it?what is it?• A system that controls A system that controls

the successive versions the successive versions of the software as it is of the software as it is developeddeveloped

The

repository stores the initial version of the software and all subsequent changes to it.

Our repository is in the basement of Crapo.

Each team member has her own copy of the software, working on her own part of it. She periodically:

updates to get changes from her teammates

commits her own work to a new version in the repository

Page 3: Fundamentals of Software Development 1Slide 1 Version control – outline What is it?What is it? Why do it?Why do it? How to do it?How to do it?

Fundamentals of Software Development 1

Slide 3

Version control – why do Version control – why do it?it?

• It allows the software development team to:It allows the software development team to:– Produce successive versionsProduce successive versions of the software of the software

• And fall back to a previous version if necessaryAnd fall back to a previous version if necessary

– Work concurrentlyWork concurrently on the software on the software– Work on different branchesWork on different branches of the software of the software

developmentdevelopment

• We use version control in CSSE 120 because:We use version control in CSSE 120 because:– It allows you to work more easily with your teammatesIt allows you to work more easily with your teammates– It is a practice that scales up to larger software It is a practice that scales up to larger software

projectsprojects• The larger the project, the more important version control The larger the project, the more important version control

becomesbecomes

Page 4: Fundamentals of Software Development 1Slide 1 Version control – outline What is it?What is it? Why do it?Why do it? How to do it?How to do it?

Fundamentals of Software Development 1

Slide 4

Version control – how to Version control – how to do it?do it?Preliminary steps:

Someone in the organization Someone in the organization creates the repository. It can creates the repository. It can contain many modules.contain many modules.

Someone on the team doesSomeone on the team does CVS ~ Make New Module CVS ~ Make New Moduleto upload the initial version of the to upload the initial version of the module to the repositorymodule to the repository

You doYou do CVS CheckoutCVS Checkoutto obtain that initial version of the to obtain that initial version of the modulemodule

You repeatedly:You repeatedly:

1. CVS Update1. CVS Update

2. Work on the software2. Work on the software

Occasionally do Occasionally do CVS UpdateCVS Update to get your teammate’s work to get your teammate’s work

CVS warns you if that work conflictsCVS warns you if that work conflicts with your own work with your own work

3. Share your work3. Share your work (put it into the repository, (put it into the repository, as a new version) when you are ready, by:as a new version) when you are ready, by:

a. CVS Updatea. CVS Update

b. CVS Add Contentsb. CVS Add Contents

c. CVS Commitc. CVS Commit