info-cvs
[Top][All Lists]
Advanced

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

Re: Retrieve last TAG name


From: Paul Sander
Subject: Re: Retrieve last TAG name
Date: Thu, 4 Mar 2010 10:09:15 -0800

Alternatively, you could adopt a naming convention such that the sort order of the tags is the same as the creation order, and be sure to apply each tag to a placeholder file. Then you can obtain the latest tag from the placeholder file's log easily in a script.

On Mar 4, 2010, at 8:24 AM, Mark D. Baushke wrote:

Rapthor <address@hidden> writes:

is there a way to retrieve the name of the latest CVS-Tag in the
repository?

No. Tags are kept per file. A tag used on one file may or may not be
related to some other file in the repository.

Let's say I tagged a directory including all files with a version
VERSION_1_0_2_3. How do I retrieve this name via CVS command?

You will see tags listed when you do a 'cvs log' or 'cvs rlog' command.

To get the most recent, you would need to look at the date of the
revision for each tag perfile and sort by that date to find the most
recently committed delta with an associated tag name.

        -- Mark





reply via email to

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