01.02.2013 Views

Software Development Cross Solution - Index of - Free

Software Development Cross Solution - Index of - Free

Software Development Cross Solution - Index of - Free

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

viewing logs<br />

Good commit messages make finding<br />

older s<strong>of</strong>tware easier<br />

You’ve been putting nice descriptive messages each time you committed<br />

code into your version control system, right? Here’s where they matter.<br />

Just as each commit gets a revision number, your version control s<strong>of</strong>tware<br />

also keeps your commit messages associated with that revision number,<br />

and you can view them in the log:<br />

To get the log<br />

we use the “log”<br />

command...<br />

Subversion responds<br />

by giving us all <strong>of</strong><br />

the log entries for<br />

that file.<br />

Here’s the<br />

revision number...<br />

And here’s the<br />

log message to<br />

go with it.<br />

Subversion keeps<br />

track <strong>of</strong> who<br />

made the changes<br />

and when.<br />

202 Chapter 6<br />

File Edit Window Help HeDidWhat?<br />

hfsd> svn log src/headfirst/sd/chapter6/BeatBox.java<br />

------------------------------------------------------------------------r5<br />

| Bob | 2007-09-03 11:45:28 -0400 (Mon, 03 Sep 2007) | 52 lines<br />

Tests and initial implementation <strong>of</strong> saving message log for Windows.<br />

------------------------------------------------------------------------r4<br />

| Bob | 2007-08-27 11:45:28 -0400 (Mon, 27 Aug 2007) | 3 lines<br />

Quick bugfix for 1.0 release to handle cancelling the send picture dialog.<br />

------------------------------------------------------------------------r3<br />

| Bob | 2007-08-24 11:45:28 -0400 (Fri, 24 Aug 2007) | 23 lines<br />

Merged picture support with Poke stuff.<br />

------------------------------------------------------------------------r2<br />

| Mark | 2007-08-21 11:45:28 -0400 (Tues, 21 Aug 2007) | 37 lines<br />

Added POKE support.<br />

------------------------------------------------------------------------r1<br />

| Mark | 2007-08-20 20:08:14 -0400 (Mon, 20 Aug 2007) | 1 line<br />

Initial Import<br />

--------------------------------------------------------------------------<br />

hfsd><br />

Play “Find the features” with the log messages<br />

You’ve got to figure out which features were in the s<strong>of</strong>tware—in this case,<br />

for Version 1.0. Then, figure out which revision that matches up with.<br />

Using the log messages above, which revision do you think matches up<br />

with Version 1.0 <strong>of</strong> BeatBox Pro?<br />

...and specify which file to get the log for.<br />

Write down the revision<br />

number you want to check<br />

out to get Version 1.0.<br />

Download at WoweBook.Com

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

Saved successfully!

Ooh no, something went wrong!