[Top][All Lists]

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

Re: Massive cvs migration

From: Spiro Trikaliotis
Subject: Re: Massive cvs migration
Date: Tue, 30 Sep 2008 09:05:21 +0200
User-agent: Mutt/1.5.17+20080114 (2008-01-14)

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

However, if this precondition holds true (0.), you can be sure you did
not trash your binary files. Additionally, you can undo any accidential

Best regards,

Spiro R. Trikaliotis                               

reply via email to

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