« complogs | Main | LOS178 3.0.0 200508012 »

verifycrs

  • Created a script, verifycrs, which when given a lot of parameters will insure that the file revisions associated with a set of CRs (or ECRs) has been properly migrated into another CVS repository

verifycrs

The verifycrs script verify that the files associated with a list of [E]CRs from one CVS repository are present in another CVS repository.

Odd as it seems we have a situation here where CVS repositories have to remain separate due to contract concerns. Nevertheless code is routinely exported from one repository to the other. Then it is needed to verify that a set of [E]CRs have successfully made it into the other repository.

The plan here is simple: Checkout both repositories as per a base tag to a temporary area. Then update the "from" repository by utilizing files4[e]cr in update mode. At this point we are sure that the from repository is correct.

The "to" repository - also checked out via a tag - should be already up to date (IOW we use a to tag of the resultant build). Then all that is needed is to compare the list of files associated with the [E]CRs being imported.

In order to minimize false diffs, checkouts are down without keywords (i.e. -kk).

Usage: verifycrs [-u] [-v] [-d]
        -fcvsroot <CVSROOT> -fmod <CVS module> -ftag <tag>
        -tcvsroot <CVSROOT> -tmod <CVS module> -ttag <tag>
        [-c <CRs...>|-e <ECRs...>]

Where:

        -u              Display usage
        -v              Turn on verbose mode
        -d              Turn on debug mode
        -fcvsroot       CVSROOT specification for from repository
        -fmod           CVS module (e.g. los178)
        -ftag           From tag (e.g. DEV_LOS178_3p0p0_ppc_20050704)
        -tcvsroot       CVSROOT specification for to repository
        -tmod           CVS module (e.g. los178)
        -ttag           To tag (e.g. DEV_HYBRIDOS_3p0p0_ppc_20050707)
        <CRs>           CR numbers included in this export/import
        <ECRs>          ECR numbers included in this export/import