[Top][All Lists]

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

Re: Major cvs surgery, need suggestions

From: Steve Greenland
Subject: Re: Major cvs surgery, need suggestions
Date: Fri, 1 Mar 2002 09:26:09 -0600
User-agent: Mutt/1.2.5i

On Fri, Mar 01, 2002 at 04:19:41AM +0000, David A. Desrosiers wrote:
>       As I move *.c to src/*.c, how do I preserve the history of each file as
> it's moved? If I simply do:

Noooooooo! (A cry of anguish is just missed a multiday
round of arguments, flames, and general bad behaviour (self included) on
this very topic).

>       foo.c in the top level is 1.46, but when moved and added, it gets
> version 1.1 (logically). How do I preserve the history of the changes made
> to this file to date, so I can do a 'cvs log' on it and get the full
> changes?

You can't. The best you can do is

mv foo.c src/foo.c
cvs add src/foo.c
cvs rm foo.c
cvs ci -m"Moved foo.c to src/foo.c" foo.c src/foo.c

Then, when log src/foo.c, you'll see how to backtrack to previous

One can also play games with moving/copying files in the repository, but
that leads to problems when checking out older versions, and files with
tags they should have. The above is the best current practice for being
able to correctly reproduce old versions.


"Outlook not so good." That magic 8-ball knows everything! I'll ask
about Exchange Server next.
                           -- (Stolen from the net)

reply via email to

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