[Top][All Lists]

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

Re: Renaming/refactoring cvs dirs

From: Kevin Duffey
Subject: Re: Renaming/refactoring cvs dirs
Date: Wed, 3 Sep 2003 23:59:55 -0700 (PDT)

That is good to know, but can you do this from WinCVS
or the command line without being logged in to the CVS
server? That is my main issue, that it doesn't appear
there is any way to do this normally. I suppose a
script with what you have and somehow running the
script would work, but that is not exactly classy.

--- "Greg A. Woods" <address@hidden> wrote:
> [ 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>

Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software

reply via email to

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