Blog


Tip: Making a snapshot from an alternate project source directory

I was working hard on doing nothing on the 4th of July holiday and didn’t do a Build Metrics post about B450. Now I’m ready to do that and I find that I forgot to make an Understand 2.0 snapshot of the source for B450.

I have a couple options:

  1. Check out B450 source to an alternate location and make a snapshot from it.
  2. Look up the revision tag time for B450 and use TrackBack to make a snapshot.

I’ll choose #1 just for an example. Next time, I’ll show #2.

First, I’ll check my SVN e-mail log to see when B450 was tagged:

2008-07-10 05.10

Now just go to the Change menu and choose to create a Named snapshot from an alternate source location:

2008-07-10 05.26

Because my personal source tree has advanced beyond B450, I needed to put B450 source in a separate location. And I’ll need to tell Understand where I put it. Also, so that this snapshot is ordered correctly reltative to others, I’ll need to give the SVN tag time.  I tell Understand where I put it by adding a source mapping. What I’m doing here is saying “Hey Understand, for this directory in the current project, look in this alternate folder when making a snapshot”:

2008-07-10 05.31

My working source for this Understand project is in the second “Current Project path” field. Where I placed B450 is in the first “Alternate Source Path”. They need to be the same relative points in the respective versions of the source tree.

Understand 2.0 the thinks for a bit and then presents a “Snapshot Preview”. Here you can see if you did the maping right.

2008-07-10 05.33

The way to interpret this preview is that the first list, “Current Project files found” is files that exist in the current and alternate locations.  The second “files that are not in the current project” represent files that were deleted since B450, and the third “files not included in this snapshot” means that there were new files that weren’t around for B450. These are auto-generated files largely, an artifact of our Qt based build system.

This looks right to me. So I accept it and it makes the snapshot.  I can then see the rough stats for it via Change->Manage Snapshots:

2008-07-10 06.00

 

 

 


Leave a Reply