List of all files that were not edited during the year in CVS

How to get a list of all files that were not changed last year in the CVS repository?

+3
source share
4 answers

We can easily do this using ViewVC (or ViewCVS, as it was called before). It builds the SQL database of all files and their commits (with comments and authors), which you can easily query in different ways.

You can download it from http://www.viewvc.org/ . You will need to configure the MySQL server to store data and access the directory of the physical repository on the CVS server to import your existing repository using the tool cvsdbadmin:

cvsdbadmin rebuild /var/lib/cvs

where /var/lib/cvsis your repository location. Database connection information is stored in the ViewVC configuration file.

. , SQL-, - . CVS loginfo script ( ViewVC), " " , - CVS.

, - (. ); CVS , .

+1

, , - , ( 2008-05-08 ):

cvs history -c -D2008-05-08

, . , , cvs history, .

+1

, , . CVS . ( Subversion, .)

+1

CVS diff (--report-same-files) , . :

cvs co -D "1 year old" proj

diff, :

diff --recursive --report-identical-files --brief | grep identical
0

Source: https://habr.com/ru/post/1707967/


All Articles