It seems like it should be that simple, but I can't find any solution that works ...
I need a CVS command that sets the name of the tag that you applied to the file, it will give you the version number.
CVS tree structure:
(filename) | +--> 1.1-----(branch) | | | 1.1.1.1---(tag1) | | | 1.1.1.2---(tag2) | | | 1.1.1.3---(tag3) | | | : 1.2 | | :
For example: using the CVS command, given the tag name "tag2", how can I get CVS to give me the version number "1.1.1.2"?
The closest I can find is to use the log command with the -Q flag, but that still gives me much more information than I need.
ex: cvs -Q log -h filename
Passing a tag to the log command seems inefficient.
CVS Version Information:

My current solution is to use a perl script to parse the output from the log command, but there should be an easier way ...
version-control branch versioning cvs
tjwrona1992
source share