Download presentation
Presentation is loading. Please wait.
Published byLee Bond Modified over 8 years ago
1
Source Control Dr. Scott Schaefer
2
Version Control Systems Allow for maintenance and archiving of multiple versions of code / other files Designed for text files… can be used with other files, but some functionality won’t work Saves multiple copies of the same file Tracks changes to each file among multiple users Allows multiple users to edit the same file at the same time
3
Subversion Open-source version control system Builds on CVS Can handle local or remote repositories Stores and transfers diffs of files… not entire files (efficient)
4
Example Repository User 1 User 2 XZ Y
5
Example Repository User 1 User 2 XZ Y add X add Y add Z
6
Example Repository User 1 User 2 XZ Y Commit XZ Y 1
7
Example Repository User 1 User 2 XZ Y XZ Y Checkout XZ Y 1
8
Example Repository User 1 User 2 XZ Y XZ Y Modify Y XZ Y 1
9
Example Repository User 1 User 2 XZ Y XZ Y Commit XZ Y XZ Y 1 2
10
Example Repository User 1 User 2 XZ Y XZ Y Update XZ Y XZ Y 1 2
11
Example Repository User 1 User 2 XZ Y XZ Y Modify X XZ Y XZ Y 1 2
12
Example Repository User 1 User 2 XZ Y XZ Y Commit XZ Y XZ Y XZ Y 1 2 3
13
Example Repository User 1 User 2 XZ Y XZ Y Update XZ Y XZ Y XZ Y merged text! 1 2 3
14
Another Example Repository User 1 User 2 X Y XZ Y XZ Y 1 Delete Z
15
Another Example Repository User 1 User 2 X Y XZ Y XZ Y 1 Commit X Y 2
16
Another Example Repository User 1 User 2 X Y XZ Y X Y 1 Update X Y 2
17
Conflicts Happen when you and someone else edit the same line of code <<<<<<<<<.mine Your change ========= Someone else’s change >>>>>>>>>.r 23 Subversion keeps both your original (foo.mine) and the revision (foo.23)
18
Living with Version Control ALWAYS update before you commit changes If files change during the update, make sure everything works before you commit If you have a conflict, you MUST resolve the conflict before committing Update often to avoid conflicts Add descriptions to all of your commits
19
Your Project You MUST use version control for all of your projects I strongly suggest using Google Code as your SVN server You can access it from anywhere
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.