info-cvs
[Top][All Lists]
Advanced

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

Re: address@hidden: Re: rename in cvs]


From: Greg A. Woods
Subject: Re: address@hidden: Re: rename in cvs]
Date: Thu, 11 Oct 2001 01:03:59 -0400 (EDT)

[ On , October 10, 2001 at 17:31:23 (-0400), Sam Steingold wrote: ]
> Subject: Re: address@hidden: Re: rename in cvs]
>
> if you rename FOO to BAR "the right way", i.e.,
> 
> $ mv FOO BAR
> $ cvs rm FOO
> $ cvs add BAR
> $ cvs ci BAR
> 
> then you lose in many ways:

No, you lose absolutely nothing -- in fact you _gain_ the information
about the rename!

>  * 'cvs log BAR' does not list changes in file FOO

Of course not!!!!  You do not want it to!  That would be illogical.

>  * there is no way to compare BAR 1.123 with FOO 1.321
>    [yeah, they are separated by over a hundred revisions, so what?
>     there are still situations when this makes sense.]

Bull.  It's trivial to do.

>  -->  etc - CVS does not know that FOO is the old name for BAR.
> 
>  * also, this operation cannot be undone gracefully: when I do the above
>    renaming backwards, CVS moves BAR,v into the attic and there is no
>    way to get the revisions of BAR into the FOO,v file
>    (or is there - how do I concat two *,v files?!)

It's trivial to "undo" too -- the same way you "undo" any commit.

> The problem is that I do not always have shell access - then I am stuck.

You don't need to have shell-level access to the repository.

-- 
                                                        Greg A. Woods

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



reply via email to

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