|Subject:||RE: How can we find out which one is tag and which one is branch?|
|Date:||Thu, 14 May 2009 22:10:36 +1000|
You are getting into the internals of CVS and RCS which is unwise. There are actually at least 3 different things: tags, branches and vendor branches - and CVSNT also has alias tags and magic branches.
From memory in CVS and CVSNT a tag never has a zero, ie: the first is a branch and the second a tag:
Whatever you implement outside of CVS itself is certain to eventually be incorrect, my preference is to always recommend to system integrators to call CVS itself to tell you what information you need - in this case a call like "cvs log -N -rCVSNT_2_5_03_3280. filename.ext" should in theory generate a warning if it's not a branch - but I've just done some limited testing and I get rather variable results:
warning: no branch `CVSNT_2_5_03_3280' in `/repo/path/to/filename.ext,v'
I know for CVSNT in the CVSAPI we have a function that calls rlog and returns an array of structures to tell a calling program what are tags and what are branches - but that's no help to you...
|[Prev in Thread]||Current Thread||[Next in Thread]|