# List all the tags available for all files in a CVS working copy.
# This is an ugly hack. It should more or less work, though.
cvs status -vR 2>/dev/null | \
- grep '(revision:' | \
+ egrep '\((revision|branch):' | \
sed 's/[[:space:]]*\([^[:space:]]*\).*/\1/' | \
sort -u