info-cvs
[Top][All Lists]
Advanced

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

Re: Get date that branch or tag created


From: Spiro Trikaliotis
Subject: Re: Get date that branch or tag created
Date: Wed, 9 Apr 2008 12:46:07 +0200
User-agent: Mutt/1.5.13 (2006-08-11)

Hello Mark,

* On Wed, Apr 09, 2008 at 02:55:15AM -0700 Mark Smith wrote:
 
> Could anyone tell me how to find the date and time
> that a branch or a tag was created?

You cannot reliably, as CVS does not store this information.

What you can do is use some heuristics. Ad hoc, I would use the
following scheme: Look at the dates of all the files that have the
specific tag. A good guess is that the tag was created after the latest
of the file's modification times. (Note that this guess might be wrong,
for example, if "cvs admin -o" was involved).

For a normal tag, this is all you can say. For a branch tag, you can
assume that the branch (not necessarily the tag!) was generated before
the first checkin to that branch occurred. Thus, you can have a look at
all the files in the branch and determine the earliest checkin.


This is not possible for tags, as some file might be tagged after there
have been some check-ins for that file.


HTH,
   Spiro.

-- 
Spiro R. Trikaliotis                              http://opencbm.sf.net/
http://www.trikaliotis.net/                     http://www.viceteam.org/




reply via email to

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