info-cvs
[Top][All Lists]
Advanced

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

Re: renaming a directory in the checkout / recursive add and commit for


From: Greg A. Woods
Subject: Re: renaming a directory in the checkout / recursive add and commit for all subdirs
Date: Wed, 19 Sep 2001 15:09:32 -0400 (EDT)

[ On Wednesday, September 19, 2001 at 18:39:19 (+0200), Alexander Welti wrote: ]
> Subject: Re: renaming a directory in the checkout / recursive add and commit 
> for all subdirs
>
> i received a really cool trick for my problem:
> go to the repository directly (have a backup copy)
> rename the desired directory;
> do a fresh checkout and everything works fine;

That "stupid hack" will destroy any possibility of retrieving past revisions.

It will also disrupt current working directories somewhat.

The correct procedure (as documented in the manual) is to:

        1. create the new directory
        2. move all the files from the old directory to the new one
        3. "cvs rm *" in the old directory
        4. "cvs add newdir"
        5. "cd newdir; cvs add *"
        6. "cvs commit" at the root of the working directory and give a
           commit message that identifies exactly what you've done.

-- 
                                                        Greg A. Woods

+1 416 218-0098      VE3TCP      <address@hidden>     <address@hidden>
Planix, Inc. <address@hidden>;   Secrets of the Weird <address@hidden>



reply via email to

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