info-cvs
[Top][All Lists]
Advanced

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

Re: Retrieving timestamp of cvs rtags


From: Todd Denniston
Subject: Re: Retrieving timestamp of cvs rtags
Date: Tue, 28 May 2002 09:38:44 -0500

Larry Jones wrote:
> 
> William Brower writes:
> >
> > Is there any way to retrieve the timestamp of when a
> > cvs rtag or tag command was issued? That is I'm less
> > concerned (today) with *what files* belong to a given
> > tag as I am *when* the tag was applied. Doing this via
> > a cvs command would be great but even if I have to
> > grope around in the repository, it would be OK.
> 
> rtag is recorded in the history file (presuming you have one and the
> user doing the rtag didn't disable it), but not tag.  CVS doesn't keep
> track of when a tag was applied to a file.  And note please that tags
> belong to files, not the other way around.
> 
> -Larry Jones

although tag is not recorded in the history file, its application time can be
approximated.

If you run cvs2cl.pl
http://www.red-bean.com/cvs2cl/
and search from the top of the Changelog generated for the tag, the first entry
you find the tag in will indicate the time after which the tag was applied (and
if the file was modified after that time you now have a window of time the tag
was applied in).

I personally use a script to apply my tags, and when it applies a tag it
updates a file from the repo with information about the tag.  This file is thus
updated at the time of a tag and has the tag applied to it so I know within a
few seconds of when each tag was applied.

-- 
______________________________________________________________________________
I'd crawl over an acre of 'Visual This++' and 'Integrated Development
That' to get to gcc, Emacs, and gdb.  Thank you.
        -- Vance Petree, Virginia Power
The opinions expressed here are not sanctioned by and do not necessarily 
represent those of my employer.

reply via email to

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