[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: How to extract fine-grained snapshot history?
From: |
Jim.Hyslop |
Subject: |
RE: How to extract fine-grained snapshot history? |
Date: |
Wed, 16 Jun 2004 09:18:18 -0400 |
Kynn Jones wrote:
> For any given project under CVS control, every time someone
> makes a commit, the project changes state, as far as CVS is
> concerned. The finest-grain history of this project, as far
> as CVS knows it, would consist of a sequence of "snapshots"
> of the project as it would appear right after each one of
> these commits.
Hmmm... that's true, but the problem is, not all of these snapshots are
valid snapshots. I know many times when I'm committing, I will actually
issue several different 'commits' for a single set of changes. The snapshots
at the intermediate commits are pretty much meaningless, and indeed could
fail to build.
> Therefore, my question is:
>
> 1. How to extract the times of all the commits to a project
> (including recursively all subprojects, of course).
>
> 2. How to associate each of these times with the branch that was
> active when the corresponding commit took place.
I don't know if there's a simpler way, but my first reaction would be to
write a loginfo script, which will capture the information you need. You'd
have to do a little extra work to match the revision number against the
branch.
--
Jim Hyslop
Senior Software Designer
Leitch Technology International Inc. (http://www.leitch.com)
Columnist, C/C++ Users Journal (http://www.cuj.com/experts)