Google Answers Logo
View Question
 
Q: CVS checksums ( No Answer,   0 Comments )
Question  
Subject: CVS checksums
Category: Computers > Programming
Asked by: guyking-ga
List Price: $10.00
Posted: 23 Jun 2004 17:15 PDT
Expires: 28 Jun 2004 01:16 PDT
Question ID: 365366
How do I check if a file has ever been part of a CVS module?

Essentially I want to automate a checking process to see whether a
certain file has ever been a revision of a particular project. Is
there some sort of CVS checksum data I can access?

Request for Question Clarification by mathtalk-ga on 23 Jun 2004 17:50 PDT
Hi, guyking-ga:

Are you thinking of effectively "diff'ing" a file against all
revisions of a file with the same name in a CVS module, to see if it
matches with any of them?

regards, mathtalk-ga

Clarification of Question by guyking-ga on 23 Jun 2004 18:29 PDT
Yes that's right.

Just say I have a local file:

/myproject/foo/bar/test.php

I want to check if it is the exact same as the current file or any
revision of it on the CVS server:

/usr/cvs/myproject/foo/bar/test.php

Essentially I want to detect custom files in a project that are not
part of the CVS module.

Thanks!

Request for Question Clarification by mathtalk-ga on 27 Jun 2004 15:24 PDT
Hi, guyking-ga:

The most elegant way I can see to do this, and it isn't "beautiful",
is to run a Perl script from the directory containing the various
files.
 
A CVS log command will tell you all the revisions of a given file that
have ever existed in the repository, and from parsing out the
revisions you could do a CVS diff between the existing file and each
of the previous versions (probably using the -s option, which I think
simplifies the diff output just to telling you if there is a
difference).

As far as I can tell CVS doesn't expose any revision by revision
"checksum" that could be tested as you originally proposed.

regards, mathtalk-ga
Answer  
There is no answer at this time.

Comments  
There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy