[Top][All Lists]

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

Re: moving a file

From: Greg A. Woods
Subject: Re: moving a file
Date: Thu, 12 Sep 2002 13:05:05 -0400 (EDT)

[ On Thursday, September 12, 2002 at 16:26:28 (+0200), Massimiliano Cialdi 
wrote: ]
> Subject: moving a file
> how can I move a file from a directory to another whithout loose the history?

        $ cd ..
        $ cp foodir/barfile blahdir
        $ cvs rm -f foodir/barfile
        $ cd blahdir
        $ cvs add barfile
        $ cd ..
        $ cvs commit -m '- moved foodir/barfile to blahdir/barfile' 
foodir/barfile blahdir/barfile

No history is lost.  You should still be able to do "cvs log foodir/barfile"

The final "death" entry in the log for the old file will tell you where
the new file is and the first entry in the log of the new file will tell
you where it came from.

                                                                Greg A. Woods

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

reply via email to

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