object-oriented analysis & design subversion. contents configuration management the repository...

15
Object-Oriented Analysis & Design Subversion

Upload: bartholomew-holmes

Post on 01-Jan-2016

215 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: Object-Oriented Analysis & Design Subversion. Contents  Configuration management  The repository  Versioning  Tags  Branches  Subversion 2

Object-Oriented Analysis & Design

Subversion

Page 2: Object-Oriented Analysis & Design Subversion. Contents  Configuration management  The repository  Versioning  Tags  Branches  Subversion 2

2

Contents Configuration management The repository Versioning Tags Branches Subversion

Page 3: Object-Oriented Analysis & Design Subversion. Contents  Configuration management  The repository  Versioning  Tags  Branches  Subversion 2

3

Configuration Management Configuration management is

Storing source code and documents in a central location

Allowing people to check out copies of the documents

Checking in documents Assigning version numbers to documents Locking documents so only one person can check

it out Sharing documents among several people and

resolving conflicts Assigning tags to major releases Creating branches off the trunk

Page 4: Object-Oriented Analysis & Design Subversion. Contents  Configuration management  The repository  Versioning  Tags  Branches  Subversion 2

4

The Repository Repository stores all

software in project Usually accessed via the

internet Any member of the group

can Checkin software Checkout software

The repository is a copy of the software on the user’s local disk

Repository

Checkin /checkout

Page 5: Object-Oriented Analysis & Design Subversion. Contents  Configuration management  The repository  Versioning  Tags  Branches  Subversion 2

5

Versioning Every time software is checked in, a

version number is assigned

When software is checked out, you get the most recent version by default

You can request any version of the software if you do not want the most recent version

1.0

1.1

1.2

2.0

Page 6: Object-Oriented Analysis & Design Subversion. Contents  Configuration management  The repository  Versioning  Tags  Branches  Subversion 2

6

Checking In Copies software from your

computer to the repository Assigns a version number to it Makes the software to other

people in the team

New files can be added to the project

Comments can be added Can resolve conflicts if

someone else modified the same document

Repository

Page 7: Object-Oriented Analysis & Design Subversion. Contents  Configuration management  The repository  Versioning  Tags  Branches  Subversion 2

7

Checking Out Copies the software from the

repository to your computer

Can optionally lock the software so no one else can check out the same files

Repository

Page 8: Object-Oriented Analysis & Design Subversion. Contents  Configuration management  The repository  Versioning  Tags  Branches  Subversion 2

8

Tags Can add a tag to any

combination of files Tag can be used to mark major

milestones Can be used to retrieve all files

used in a release

Rele

ase

1.0

Page 9: Object-Oriented Analysis & Design Subversion. Contents  Configuration management  The repository  Versioning  Tags  Branches  Subversion 2

9

Branches Allow branches of the code base Each branch is a different version

of the software

Allows for Experimental development Development of different versions for

specialized markets

1.0

1.1

1.1.1

1.1.2

1.2.1

1.2.2

Page 10: Object-Oriented Analysis & Design Subversion. Contents  Configuration management  The repository  Versioning  Tags  Branches  Subversion 2

10

Subversion One of many open source source

code control systems Advantages

Can be run locally on a computer Can be run as a network server Has a client integrated into the

Windows file manager (Tigress SVN) Recognizes the structure of

directories Uses the same version number for

all files in a project, even if some of the files are not updated

Commits are atomic

Page 11: Object-Oriented Analysis & Design Subversion. Contents  Configuration management  The repository  Versioning  Tags  Branches  Subversion 2

11

Connecting to a Repository Right click on a file in the file browser Select Tortoise SVN | Repo Browser Use https to specify repository Enter user name and password

Page 12: Object-Oriented Analysis & Design Subversion. Contents  Configuration management  The repository  Versioning  Tags  Branches  Subversion 2

12

Adding Files to the Repository You must place files under version control

Right click on file or directory in file browser Select Tortoise SVN | Add... This will let you add files to the project

Page 13: Object-Oriented Analysis & Design Subversion. Contents  Configuration management  The repository  Versioning  Tags  Branches  Subversion 2

13

Checking In Once you have changed a file and want to

place the changes in the repository Right click on the file in the file browser Select SVN Commit

Page 14: Object-Oriented Analysis & Design Subversion. Contents  Configuration management  The repository  Versioning  Tags  Branches  Subversion 2

14

Checkout

Right click and select checkout

Fill in destination directory

Page 15: Object-Oriented Analysis & Design Subversion. Contents  Configuration management  The repository  Versioning  Tags  Branches  Subversion 2

15

Update This will refresh the files in your copy to make

sure they are up to date with the repository

Right click on file or directory in file browser and click SVN Update