info-cvs
[Top][All Lists]
Advanced

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

Re: Major cvs surgery, need suggestions


From: Greg A. Woods
Subject: Re: Major cvs surgery, need suggestions
Date: Fri, 1 Mar 2002 19:46:35 -0500 (EST)

[ On Friday, March 1, 2002 at 23:29:53 (GMT), David A. Desrosiers wrote: ]
> Subject: Re: Major cvs surgery, need suggestions
>
> >>    foo.c in the top level is 1.46, but when moved and added, it gets
> >> version 1.1 (logically). How do I preserve the history of the changes
> >> made to this file to date, so I can do a 'cvs log' on it and get the
> >> full changes?
> > 
> > You can't. The best you can do is
> > 
> > mv foo.c src/foo.c
> > cvs add src/foo.c
> > cvs rm foo.c
> > cvs ci -m"Moved foo.c to src/foo.c" foo.c src/foo.c
> 
>       This is the exact solution I can _NOT_ use. What happens here is that I
> lose both history _AND_ revision of each file. Not exactly ideal for my
> situation.

Ah, no, there is NO loss of history using the "add/rm" procedure!  It's
_ALL_ still there, even including the new record of the rename!
 
BTW, you do not need, want, or care, to know about the revision
numbers.  They are merely sequential counters of revisions stored in the
RCS files.  If you need to remember any given point in the revision
history of a file, or of all the files in a module, then you really must
use tags and tags alone.

-- 
                                                                Greg A. Woods

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



reply via email to

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