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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

8.2 Source C<strong>on</strong>trol: Whys and Hows205Note: do not put a space between the -w, -r, or -d and its parameter or CVSwill think that the parameter is the name of a source module, and you will seea message like this:$ cvs log -r 1.2:1.4 Account.javacvs log: nothing known about 1.2:1.4...which will be followed by output about the Account.java module that CVSdoes know about.For more variati<strong>on</strong>s <strong>on</strong> the logging output, type:$ cvs log --help8.2.7 cvs statusWhile the cvs log command will tell you about the history of all revisi<strong>on</strong>s ofa file, you sometimes need to know the status of the current file in your sandbox:Which revisi<strong>on</strong> is it? From where did it come? And, most importantly, isit part of the head or part of a branch?Those questi<strong>on</strong>s can be answered with the cvs status command. Itsoutput will show the revisi<strong>on</strong> number of the file in your sandbox and any“sticky” tags. But to understand what that means, we need to talk about tagsfirst.8.2.8 cvs tagWe began this chapter asking: “Can you find or create a set of sources thatmatches exactly what your customer is running? Can you then provide a modifiedversi<strong>on</strong> that c<strong>on</strong>tains <strong>on</strong>ly the fix necessary and no other changes?” Partof the answers to these questi<strong>on</strong>s will depend <strong>on</strong> your use of the cvs tagcommand. With it, you can set down a label across all your source to mark aparticular milest<strong>on</strong>e, so that later you can recall that versi<strong>on</strong> of the source.For example,$ cvs tag Rel_2_4will put a tag (that is, a label) called Rel_2_4 <strong>on</strong> the head revisi<strong>on</strong> of all sourcefiles from the directory where this command was executed <strong>on</strong> down through

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

Saved successfully!

Ooh no, something went wrong!