info-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Comparing CVS and SourceSafe (was RE: query)


From: Glew, Andy
Subject: RE: Comparing CVS and SourceSafe (was RE: query)
Date: Tue, 31 Jul 2001 13:15:21 -0700

> I'd be carefull about saying that you can fix this.  A corrupted ,v
> generally not saveable.  I've had plenty of times where
> I know a ,v file is corrupted in one of the versions.  There
> is nothing I can do to retrieve that lost data.  Yes good backups
> are key but with cvs's mechanism of looking at data, corrupted
> files can exist for a long time before you discover that it has
> become corrupted.  Months/Years can go by...


Run something like this pseudo script as often as you like:

  FOR EACH file F in repository
    FOR EACH version V in its ,v file
      cvs co -rV F
      compute checksum, and compare to a saved checksum

This checks that all versions you can extract are okay.
You then need to verify that there are no missing versions
- that's a bit more of a pain, since to do so totally transparent,
in the presence of -o outdating, is more of a change.
But if you never remove versions, having a checkin script
or even the above scanner save the checksum suffices,
and then you have a BOM.


As in all things CVS, you need to roll this yourself.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]