Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to find out which CVS tags cover which files and paths?

Tags:

cvs

There is a legacy CVS repository, which contains a large number of directories, sub-directories, and paths. There is also a large number of branches and tags that do not necessarilly cover all paths & files - usually a subset. How can I find out, which branch / tag covers, which files and paths?

CVS log already provides the list of tags per file. The task requires me to transpose this into files per tag. I could not find such functionality in current WinCVS (CVSNT) implementation. Given ample empty cycles I can write a Perl script that would do that, the algorithm is not complex, but it needs to be done.

I would imagine there are some people who needed such information and solved this problem. Thus, I think should be a readily available (open source / free) tool for this.

like image 439
Ignas Limanauskas Avatar asked Aug 26 '08 18:08

Ignas Limanauskas


2 Answers

To list tags on a file one can also do:

cvs status -v <file>
like image 138
Joakim Elofsson Avatar answered Oct 11 '22 11:10

Joakim Elofsson


To determine what tags apply to a particular file use:

cvs log <filename>

This will output all the versions of the file and what tags have been applied to the version.

To determine what files are included in a single tag, the only thing I can think of is to check out using the tag and see what files come back. The command for that is any of:

cvs update -r <tagname>
cvs co <modulename> -r <tagname>
cvs export <modulename> -r <tagname>
like image 25
John Meagher Avatar answered Oct 11 '22 11:10

John Meagher