150 likes | 228 Views
Object-Oriented Analysis & Design. Subversion. Contents. Configuration management The repository Versioning Tags Branches Subversion. Configuration Management. Configuration management is Storing source code and documents in a central location
E N D
Object-Oriented Analysis & Design Subversion
Contents • Configuration management • The repository • Versioning • Tags • Branches • Subversion
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
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
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
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
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
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 Release 1.0
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.2.1 1.1.2 1.2.2
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
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
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
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
Checkout Fill in destination directory Right click and select checkout
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