Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: Retrieve last TAG name

0 views
Skip to first unread message

Mark D. Baushke

unread,
Mar 4, 2010, 11:24:10 AM3/4/10
to Rapthor, Info...@nongnu.org
Rapthor <rap...@lycos.de> 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

Amaresh Ch Das

unread,
Mar 4, 2010, 12:15:38 PM3/4/10
to Info...@nongnu.org, Rapthor
Performing a CVS diffAfter
developers have checked in updates to the code it may be beneficial to
see what has changed, either to help solve bugs or to track changes.
There are several option to do this. Perform a diff between complete branches: $ cvs -q diff -u -r BRANCH1 -r BRANCH2 Perform a diff between a single file in two branches: $ cvs -q diff -u -r BRANCH1 -r BRANCH2 filename Perform a diff between different versions of a file: $ cvs -q diff -u -r version1 -r version2 filename
for more check this link : -
                                 CVS DIFF

Thanks,


--- On Wed, 3/3/10, Rapthor <rap...@lycos.de> wrote:

From: Rapthor <rap...@lycos.de>
Subject: Retrieve last TAG name
To: Info...@nongnu.org
Date: Wednesday, 3 March, 2010, 2:40 PM


Hello all,

is there a way to retrieve the name of the latest CVS-Tag 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?

Thanks,
Rapthor.
--
View this message in context: http://old.nabble.com/Retrieve-last-TAG-name-tp27765815p27765815.html
Sent from the Gnu - Cvs - Info mailing list archive at Nabble.com.


The INTERNET now has a personality. YOURS! See your Yahoo! Homepage. http://in.yahoo.com/

Paul Sander

unread,
Mar 4, 2010, 1:09:15 PM3/4/10
to Mark D. Baushke, Rapthor, Info...@nongnu.org
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 <rap...@lycos.de> 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?
>

Todd Denniston

unread,
Mar 4, 2010, 3:54:24 PM3/4/10
to Rapthor, Info...@nongnu.org
Rapthor wrote, On 03/03/2010 04:10 AM:
> Hello all,

>
> is there a way to retrieve the name of the latest CVS-Tag 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?
>
> Thanks,
> Rapthor.

Of course my first instinct is to reach for cvs2cl[1]

cd /to/directory/of/interest
cvs2cl -r -T -t --stdout |grep "[0-9] tag " |head

or just run it on a whole baseline checkout.

[1] http://www.red-bean.com/cvs2cl/
or the python version of it cvs2cl.py that is included in CVSNT (Which IIRC is included in WinCVS)

--
Todd Denniston
Crane Division, Naval Surface Warfare Center (NSWC Crane)
Harnessing the Power of Technology for the Warfighter


0 new messages