13.07.2015 Views

Java™ Application Development on Linux - Dator

Java™ Application Development on Linux - Dator

Java™ Application Development on Linux - Dator

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

8.2 Source C<strong>on</strong>trol: Whys and Hows191Enter cvs—the C<strong>on</strong>current Versi<strong>on</strong>ing System. It’s a versi<strong>on</strong>ing system,allowing you to retrieve copies of the source based <strong>on</strong> either date parameters(e.g., last Tuesday) or the labels that you create. It’s c<strong>on</strong>current because itsupports multiple simultaneous users.You may have used a versi<strong>on</strong>ing system before that let multiple programmerswork with a set of files. Often such systems will “lock” a file while <strong>on</strong>euser is using it, keeping others from modifying it. CVS doesn’t work thatway—or doesn’t have to. Rather it allows users to each modify the same file(truly c<strong>on</strong>current), and then rec<strong>on</strong>ciles the changes when those changes aremade permanent.To explain all this, it would be best to set down some terminology, as usedby CVS.repositoryThe master copy of the source.sandboxA developer’s local copy of the source.checkoutThe process of acquiring a copy of the source (<strong>on</strong>e or more pieces) fromthe repository.commitThe process of adding the changes from your sandbox into the repository.updateThe process of revising your sandbox with changes that have occurred inthe repository since you last updated or created your sandbox. When you“update” your sandbox, other developers’ changes that have been committedto the repository are merged into your source sandbox.tagtagAs a noun, is a special label that you create to mark a milest<strong>on</strong>e in yoursource repository; you can return to that milest<strong>on</strong>e by checking out a copyof the source with that tag.As a verb, refers to creating a tag in the source repository.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!