1. Trang chủ
  2. » Giáo án - Bài giảng

Version control

50 136 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Version Control Lecturer: Ngô Huy Biên nhbien@fit.hcmuns.edu.vn Books And Reading There is no course textbook. Here are some useful books: • Version Control with Subversion By Ben Collins-Sussman, Brian W. Fitzpatrick, C. Michael Pilato, 2004 • Subversion Version Control: Using The Subversion Version Control System in Development Projects By William Nagel, 2005 • Visual SourceSafe 2005 Software Configuration Management in Practice By Alexandru Serban, 2007 • Essential CVS By Jennifer Vesperman, 2006 Working Together  "Hey, Jane, could you send me a copy of those changes you made last Tuesday?"  "Bob, this function doesn't work anymore. Did you change  – "Sorry, I can't seem to find those old classes. I guess you'll just have to re-implement them.“  "Ok, we've all been working hard for the last week. Now let's integrate everyone's work together." Where did my code go? Who overwrote my code? Why did you overwrite my code? and When was the last time we backed up the code? When did file X last change? What changed in the file? Why was the file changed? and Who changed the file? The Repository The repository stores information in the form of a filesystem treea typical hierarchy of files and directories. Any number of clients connect to the repository, and then read or write to these files. Typically server/client architecture. Working Copy Users work on a copy, the Working Copy The version control system manages the synchronization between repository and working copies States Unchanged, and current Locally changed, and current Unchanged, and out-of-date Locally changed, and out-of-date Workspaces An area where users can work separated from the repository and to isolate each user from the others. Working folder Working directory Sandbox View Enlistment Revision The repository's filesystem Revisions Revision Numbers Revision Keywords HEAD BASE, COMMITTED, PREV Revision Dates {2009-03-19} -02-  Mixed Revision Working Copies Updates and Commits are Separate Global Revision Numbers calc/Makefile:4 integer.c:4 button.c:4 calc/Makefile:4 integer.c:4 button.c:5 calc/Makefile:6 integer.c:6 button.c:6 Deltas The difference between the two revisions is called a delta. Forward Deltas Reverse Deltas CheckOut/Update To get a resource from the repository with the purpose of making changes to it A patchfile is a special file that can be used by the patch utility to update a set of files from one revision to another. Modify/Edit To make changes to the resources in our workspace [...]... merged back into the main line of development Distributed development is supported across large or small networks Any version control is better than no version control Tools VSS (http://msdn.microsoft.com/en-us/vs2005/aa718670.aspx) CVS (http://www.nongnu.org/cvs/) SVN (http://subversion.tigris.org/) Perforce (http://www.perforce.com/perforce/products.html) BitKeeper (http://www.bitkeeper.com/Products.html)... branch into another branch Tag/Label A tag (label) is just a snapshot of a project in time Exclusive Development The version control system permits only one user at a time to work on any individual file Simultaneous Development Multiple users can work on the same file and the version control system attempts to merge the respective changes seamlessly Central Repository Central repository The historic... Integrity (http://www.mks.com/products/index.jsp) Vault (http://www.sourcegear.com/vault/) http://www.open.collab.net/downloads/subversion/ CollabNet Subversion Installation CollabNet Subversion Installation (cont.) Creating Repository Creating Repository (cont.) Commit Update Controlling Access To The Repository httpd.conf Lock ... repository Atomic commits ensures that while one person is committing changes to the repository, no one else can A hook is a place to hang a script, such that the script is run at a specific stage of the version control processperhaps before or after a change is committed, when a log message is stored, or when a file is checked out for exclusive development Conflict Lock Modify Unlock Lock Modify Unlock (cont.)... Central Repository Central repository The historic data about project changes is stored in a single place Data export An exported set of data should not contain administrative files or data for the version control system User User Central Repository User User Distributed Repositories Distributed Repositories Each developer has a personal repository, and the repositories update from their peers User User . Fitzpatrick, C. Michael Pilato, 20 04 • Subversion Version Control: Using The Subversion Version Control System in Development Projects By William Nagel, 20 05 • Visual SourceSafe 20 05 Software Configuration. Version Control Lecturer: Ngô Huy Biên nhbien@fit.hcmuns.edu.vn Books And Reading There is no course textbook. Here are some useful books: • Version Control with Subversion By Ben. Development The version control system permits only one user at a time to work on any individual file. Simultaneous Development Multiple users can work on the same file and the version control system

Ngày đăng: 13/05/2014, 21:51

Xem thêm: Version control

TỪ KHÓA LIÊN QUAN

TÀI LIỆU CÙNG NGƯỜI DÙNG

  • Đang cập nhật ...

TÀI LIỆU LIÊN QUAN