Discussion:
Retrieve last TAG name
Rapthor
2010-03-03 09:10:50 UTC
Permalink
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.
Mark D. Baushke
2010-03-04 16:24:10 UTC
Permalink
Post by Rapthor
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.
Post by Rapthor
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
Paul Sander
2010-03-04 18:09:15 UTC
Permalink
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.
Post by Mark D. Baushke
Post by Rapthor
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.
Post by Rapthor
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
2010-03-04 17:15:38 UTC
Permalink
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 <***@lycos.de> wrote:

From: Rapthor <***@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/
Todd Denniston
2010-03-04 20:54:24 UTC
Permalink
Post by Rapthor
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
Loading...