This seems like it should be so simple, but I can't find any solution that appears to work...
I need a CVS command that given the name of a tag that you have applied to a file, it will give you the revision 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 a CVS command, given the tag name "tag2", how can I get CVS to give me the revision number "1.1.1.2"?
The closest thing I can find is using 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 the tagname to the log command seems to have no effect.
CVS Version information:

My current solution is to use a perl script to parse the output from the log command but there has to be a simpler way...