开发者

Get all revisions from CVS repository

开发者 https://www.devze.com 2022-12-11 11:23 出处:网络
I have set the correct CVS Root, within this root I have a repository which contains a number of files. In particular, I am interested in the revisions of

I have set the correct CVS Root, within this root I have a repository which contains a number of files. In particular, I am interested in the revisions of one of the files, lets call it test.tex. Now I would like to get ALL different versions of th开发者_Python百科is file, from the repository. Is there somehow a command that I could use to do that?

Or do I need to extract them one after the other?

Many thanks!


There is no cvs command to check out all revisions of one file. But with bash (or some other powerful shell) it is very easy to check them out one after the other:

FN="test.tex" && for REV in `cvs log $FN | grep "^revision " | cut -c10-`; do cvs co -p -r $REV $FN > "$FN-rev$REV"; done


Try this command:

cvs history -a -c module/test.tex

This will display all the versions of that file.


I do not know of a cvs command to get all revisions of a file.

It is simple to create a script to extract all revs, using Perl for example. If you need to get fancy, you might be able to leverage what others have done on CPAN

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号