info-cvs
[Top][All Lists]
Advanced

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

Re: Renaming/refactoring cvs dirs


From: Greg A. Woods
Subject: Re: Renaming/refactoring cvs dirs
Date: Wed, 3 Sep 2003 20:16:29 -0400 (EDT)

[ On Tuesday, September 2, 2003 at 13:40:05 (-0700), Kevin Duffey wrote: ]
> Subject: Renaming/refactoring cvs dirs
>
> I have read that renaming a file and keeping it's
> history is not exactly easy to do in cvs.

What you have read is not really true.

In CVS a rename must be de-composed to its fundamental operations:

        mv oldfile newfile
        cvs rm oldfile
        cvs add newfile
        cvs commit -m 'renamed oldfile to newfile' oldfile newfile

No history is lost so long as your users are smart enough to realize
that they can still look at it via the old name ("cvs log oldfile",
etc.).  (some versions of CVS do have bugs related to looking at the
history of removed files but those are simply minor bugs that can be
fixed)

> With Eclipse
> IDE, and a VSS plugin, I am able to rename a dir, or
> refactor a package name in our java code and it
> automatically updates all cases in VSS and keeps
> history.

Don't confuse file names with interface names.  Renaming files should
not be equivalent to refactoring the code contained with in them.

Yes, I know there are some really stupidly designed Java IDEs which
force this issue -- I don't know what to do about that except to try to
avoid using them together with CVS.

-- 
                                                Greg A. Woods

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




reply via email to

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