You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by "Jack, Paul" <pj...@sfaf.org> on 2002/08/13 03:00:48 UTC

[Collections] CVS question

I want to rename SimpleObjectFactory to Factory.  How should I handle
that in CVS?  There a number of different approaches, what's the "best
practice?"

-Paul

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: [Collections] CVS question

Posted by Daniel Rall <dl...@finemaltcoding.com>.
"Craig R. McClanahan" <cr...@apache.org> writes:

> On Mon, 12 Aug 2002, Jack, Paul wrote:
> 
> > Date: Mon, 12 Aug 2002 18:00:48 -0700
> > From: "Jack, Paul" <pj...@sfaf.org>
> > Reply-To: Jakarta Commons Developers List <co...@jakarta.apache.org>
> > To: "'commons-dev@jakarta.apache.org'" <co...@jakarta.apache.org>
> > Subject: [Collections] CVS question
> >
> > I want to rename SimpleObjectFactory to Factory.  How should I handle
> > that in CVS?  There a number of different approaches, what's the "best
> > practice?"
> >
> 
> The best approach is to (in your repository) delete the old one and add
> the new one.  That leaves an audit trail in the attic:
> 
>   mv SimpleObjectFactory.java Factory.java
>   cvs delete SimpleObjectFactory.java
>   cvs add Factory.java
>   cvs commit
> 
> The only place this doesn't work well with CVS is on directories -- there
> isn't really a way to delete them.  That's why the usual directions for
> checkout are to use "cvs update -dP" so empty directories get pruned for
> you.

Another approach is to edit the repository at
/home/cvs/jakarta-commons/collections directly.  Note that this is
dangerous; never delete or rename directories or files which exist in
more than one branch or tag.  Also be sure that the unix permissions
are still set appropriately afterwards.  Unless all of this gives you
warm fuzzies, I don't recommend doing it.  ;-)
-- 

Daniel Rall <dl...@finemaltcoding.com>

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: [Collections] CVS question

Posted by Henri Yandell <ba...@generationjava.com>.
I think this is pretty obvious, but:

> The best approach is to (in your repository) delete the old one and add
> the new one.  That leaves an audit trail in the attic:
>
>   mv SimpleObjectFactory.java Factory.java
>   cvs delete SimpleObjectFactory.java
>   cvs add Factory.java
>   cvs commit
Add a comment for the add/delete saying that the file moved from
Factory.java to SimpleObjectFactory.java

Hen


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: [Collections] CVS question

Posted by "Craig R. McClanahan" <cr...@apache.org>.

On Mon, 12 Aug 2002, Jack, Paul wrote:

> Date: Mon, 12 Aug 2002 18:00:48 -0700
> From: "Jack, Paul" <pj...@sfaf.org>
> Reply-To: Jakarta Commons Developers List <co...@jakarta.apache.org>
> To: "'commons-dev@jakarta.apache.org'" <co...@jakarta.apache.org>
> Subject: [Collections] CVS question
>
> I want to rename SimpleObjectFactory to Factory.  How should I handle
> that in CVS?  There a number of different approaches, what's the "best
> practice?"
>

The best approach is to (in your repository) delete the old one and add
the new one.  That leaves an audit trail in the attic:

  mv SimpleObjectFactory.java Factory.java
  cvs delete SimpleObjectFactory.java
  cvs add Factory.java
  cvs commit

The only place this doesn't work well with CVS is on directories -- there
isn't really a way to delete them.  That's why the usual directions for
checkout are to use "cvs update -dP" so empty directories get pruned for
you.

> -Paul
>

Craig


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>