Hello Tom, * On Mon, Sep 29, 2008 at 11:18:33PM -0500 Wurdock, Tom wrote: > I am planning to move perhaps a million files int cvs prom a previous > source control system. > > In some of my tests, I mangled binary files due to not flagging them as > binary. [...] > Is there a better way to go about this?
I would do it (and I have done it) in the following way: 0. Make sure that all text files use LF line ending only, and make sure you are on a machine where LF is the natural line ending. 1. On initial check in, add *all* files as binary. 2. Afterwards, you can use "cvs admin -kkv" (or one of the other options) on the files that are not binary. On Unix alike machines, this can be done rather easily with find . -name \*.c|xargs cvs admin -kkv 3. Perform a "cvs up -A" in the sandbox afterwards to account for the changes in 2. 4. Repeat 2. and 3. until you are done. ;) This way, you do not trash your binary files accidentially. Note, however, that step 0., the precondition, can get tricky. In the case that your files use other line endings, this step can be very inconvenient. However, if this precondition holds true (0.), you can be sure you did not trash your binary files. Additionally, you can undo any accidential changes. Best regards, Spiro. -- Spiro R. Trikaliotis http://opencbm.sf.net/ http://www.trikaliotis.net/ http://www.viceteam.org/
