CVS validation based on tags only

I have a file containing several tags contained in a CVS repository. Is there a way to check all files and their associated directories using only these tags without checking the entire repository?

I do not have a list of directories in the repository, so I can not start cvs co -r baz_1_0_0_0 foo/bar/baz, since I do not know where it is located baz.

I am running CVS 1.11, so I have no commands like rls.

+6
source share
2 answers

If you do:

   cvs history -T

it will provide you with tags and related modules (assuming you have CVSROOT installed). Then you can use grep for the TAG you are looking for and check only those modules.

eg.

mods=`cvs history -T | grep $TAG | awk '{print $6}'`
for mod in $mods; do
   cvs co -r $TAG $mod
done
0
source

.. . -r, .

, . , .

mkdir baz
cd baz
cvs co -r baz_1_0_0_0 .
0

All Articles