Todd Denniston [mailto:[EMAIL PROTECTED] wrote:
> "Jim.Hyslop" wrote:
> >   echo ^RCS file:>filerev
> >   echo ^revision >>filerev
> >   cvs log -rCURRENT_TAG | grep -f filerev
> I think the above may give you some false positives, the 
> files in the Attic
> (dead & don't have the tag) lists all revs in the file.
Yes, it will, I neglected to mention that.

> cvs log -t |grep -e "CURRENT_TAG" -e "^RCS file:"|grep -B1 
> "CURRENT_TAG"
> shows just the files that have the tag. (I think)
Yes, that will work the way you expect. The only thing I can think of that
might mess that up would be a file that happens to have a filename that
contains the same text as the tag. Anchoring the tag with the
beginning-of-line followed by a tab should handle that - I'm not conversant
enough with grep to figure out how to tell grep to match a tab character
though :-)

In any case, that's nicer than my version.

> Of course with any of the methods you may have to do some 
> awk/perl/'text
> editor' to reduce the data for non programmers so the 
> _repository directory_
> and ',v' are gone.
I left that as "an exercise for the reader" >:->

> BTW What Paul Sander indicated "Labels are not immutable; 
> they can be moved
> around." is true,
Yes, we (at my work) have always considered that a fairly significant
weakness in CVS - there is no logging of changes to tags (at least, not out
of the box - you could use CVSROOT/taginfo to create and maintain a log file
of changes to tags). It's a little too easy to move or delete tags.

-- 
Jim


_______________________________________________
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs

Reply via email to