suggestions for CVS use

Bob Bell bobbell at zk3.dec.com
Wed May 7 12:25:57 EDT 2003


On Wed, May 07, 2003 at 10:44:13AM -0400, Erik Price <eprice at ptc.com> wrote:
> I use CVS for source code control for my projects, and in general I 
> really like it.  There's just one thing that really bothers me.  If you 
> wish to rename a file, or move a file to another directory, you have to 
> jump through hoops by basically creating a new file for it and 
> indicating that the old file is no longer in the project.  And it's even 
> worse for old directories (that are no longer in the project) because 
> they still get generated by a checkout, even if they're empty.  Unless 
> I'm doing something wrong.
> 
> The problem is when refactoring class names or refactoring classes from 
> one package to another.  Public classes need to be in a file of the same 
> name, and the Java package hierarchy is enforced at the filesystem level 
>  in this fashion.  I like this because it helps keep things clean, but 
> it seems CVS wasn't designed for this kind of flexibility.  Does anyone 
> have any tips in this regard?  Is this something that is taken into 
> account in Subversion (I think I remember Paul saying he uses Subversion).
> 
> Maybe I can ask my sysadmin to think about installing it, if Subversion 
> is really a lot nicer -- but I kind of doubt it because IIRC it'd 
> require changes to be made to the webserver.  It's a Gentoo box.

    FYI, though it may not be an option, ClearCase handles this.  It
deals both with versioned directories also well as tracking files as
objects (I forget the "proper" term) irregardless of their location.

-- 
Bob Bell <bobbell at zk3.dec.com>
-------------------------------------------------------------------------
 "If Linux is going to succeed, its needs to be not only
  open-source, but open-minded."
   -- Ransom Love, Caldera Systems CEO



More information about the gnhlug-discuss mailing list