info-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to extract fine-grained snapshot history?


From: Kynn Jones
Subject: Re: How to extract fine-grained snapshot history?
Date: Wed, 16 Jun 2004 10:53:52 -0400 (EDT)


   X-Original-To: address@hidden
   From: "Jim.Hyslop" <address@hidden>
   Date: Wed, 16 Jun 2004 09:18:18 -0400

   Kynn Jones wrote:
   > 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.

I'm not sure I follow you.  It sounds to me like your solution is for
recording the commit times and associated branches as I go along, so
that, in the future, I could generate the snapshot sequence.  But what
I want to do is to generate the snapshot sequence *retroactively*,
using the information about past commits stored in the current
repository.

My guess is that all the information is encoded somehow in the RCS
files.  (Although maybe other files under $CVSROOT/CVSROOT have
essential, or at least useful, information for what I want to do?)
The problem is to extract the data from the RCS files.

For example, in one of such files I find the following:

    1.3
    date        2004.06.10.19.32.06;    author jones;   state Exp;
    branches;
    next        1.2;

    1.2
    date        2004.06.09.14.06.20;    author jones;   state Exp;
    branches
        1.2.4.1;
    next        1.1;

    1.1
    date        2004.06.09.14.06.18;    author jones;   state Exp;
    branches;
    next        ;

    1.2.4.1
    date        2004.06.09.14.06.23;    author jones;   state Exp;
    branches;
    next        ;


What do these dates mean?  Are they commit dates?  And does the
revision following the "branches" keyword refer to the branch that was
active at the time of the commit?

I suppose it would be useful to read a detail description of the
anatomy of an RCS file, and of any other $CVSROOT/CVSROOT file that
may contain the time and branch information I need.

kj





reply via email to

[Prev in Thread] Current Thread [Next in Thread]