From: Anthony Williams (anthony.williamsNOSPAM_at_[hidden])
Date: 2003-01-02 04:14:29
Joel de Guzman writes:
> ----- Original Message -----
> From: "Beman Dawes" <bdawes_at_[hidden]>
> > What would be particularly nice is if the sync is entirely scripted, so
> > anyone with Boost CVS write access can run it. (Presumably read-only access
> > to the Spirit CVS is all that is required on that end.) If the entire
> > Spirit CVS (or entire sub-trees) is to be mirrored in the Boost CVS,
> > perhaps all that is needed is to have a working directory which is first
> > updated from the Spirit CVS, and then committed to the Boost CVS. Is that
> > all there is to a sync operation?
> Can we do this Dan?
1. Check out boost CVS version to one directory
2. Check out spirit CVS version to another directory
3. Do a recursive diff on the directories to identify added and removed files
4. Remove all files except those in CVS subdirectories from boost working
5. Remove CVS subdirectories from spirit working directory
6. Move the remaining files from the spirit working directory to the boost one
6. "cvs remove" all the removed files, and "cvs add" all the added files, in
the boost working directory
7. "cvs update" on the boost working directory
8. label the new version in boost CVS
Of course, you still have to avoid check-ins to both repositories.
-- Anthony Williams Senior Software Engineer, Beran Instruments Ltd. Remove NOSPAM when replying, for timely response.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk