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 Hows203In such a case, the programmer must decide which changes to keep, orhow to combine them. After editing the file and removing the dividing lines(i.e., ), recompiling and probably a bit of testing,too, the programmer can now do a cvs commit to incorporate his changes inthe repository.8.2.6 LogWith each cvs commit you are prompted for a comment, to describe thechanges that you are committing. What happens to these comments? How canyou see them again? Use the cvs log command to show the history of a file’srevisi<strong>on</strong>s and associated comments.See Example 8.2 for an example of the cvs output command.Looking down the output of cvs log, you can see• The complete filename—in the repository—of the file whose log we’rechecking out.• The local filename in your sandbox.• Which revisi<strong>on</strong> is the “head,” that is, the fr<strong>on</strong>t-most or default revisi<strong>on</strong>.• Which branch, if any.• What kind of locking mechanism CVS uses. There are some choices, butmost users of CVS leave this as is.• The access limitati<strong>on</strong>s. CVS can limit who can modify files (see ourreference list if you need to use this).• A list of all the tags (symbolic names) for this module and to whichrevisi<strong>on</strong> each refers.• What kind of keyword substituti<strong>on</strong> happens. For binary files this wouldbe kb.• The count of revisi<strong>on</strong>s for this file.Then comes a descripti<strong>on</strong> of each of the revisi<strong>on</strong>s, showing• The revisi<strong>on</strong> number.• Some stats <strong>on</strong> the change including the user ID of the user who committedthe change.• How many lines were added and deleted compared to the previous revisi<strong>on</strong>.

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

Saved successfully!

Ooh no, something went wrong!