info-cvs
[Top][All Lists]
Advanced

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

Re: How to get Branchlabels and Versionlabels out of a Revision


From: Todd Denniston
Subject: Re: How to get Branchlabels and Versionlabels out of a Revision
Date: Wed, 04 Mar 2009 08:42:21 -0500
User-agent: Thunderbird 2.0.0.19 (X11/20081209)

Knuplesch, Juergen wrote, On 03/03/2009 03:06 AM:
Hello,

I have a CVS-File and a CVS revision number and want to know the branches this 
Revision is in. (for release purposes)

e.g. MYPROJECT/de/ggt/myfile.java and the revision 1.2.4.3

Lets say myfile.java is branched at 1.2 into BranchLabel1 and into BranchLabel2.
I want to know all the names of the branchlabels myfile.java is in.
Additionaly I want to know the versionlabels 1.2.4.3 is tagged with.

I used the log command and the Netbeans Api, but it did not give me the names 
of the labels.

When I look into Eclipse DIE it shows me all revisions and the names of the 
labels.
How does this work?




I don't think it will give you everything you are looking for, at least not the way you are looking for it, but cvs2cl may get you part of the way there.

http://www.red-bean.com/cvs2cl/

If you run it as
`cvs2cl -r -t --branches`
I think it will get you close to what you want.

if you run it as
`cvs2cl -r -t --branches --xml`
you get an xml file that might be easier for you to further parse with your scripts.


Note: if you are on windows, I believe CVSNT comes with a cvs2cl.py that does pretty nearly the same thing.

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




reply via email to

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