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 <[email protected]> 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