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

Todd Denniston <[email protected]>
Newsgroups gmane.comp.version-control.cvs.general
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.