Re: DCMS rationale Ben Laurie (ben@algroup.co.uk)
Mon, 10 Apr 2000 15:05:58 +0100

"Jonathan S. Shapiro" wrote:
>
> Ben writes:
>
> > > If it were for some reason necessary for
> > > me to recover the version of EROS as it existed in 1992 I don't think
> > > I could do it, and if a CM system doesn't give you that, it doesn't
> > > give you anything at all.
> >
> > If you can't then you aren't using CVS right.
>
> Ben:
>
> Perhaps not. I submit that if it's so easy to get something so basic wrong
> there is something wrong with the tool, but I agree that isn't a good reason
> to build a new one.
>
> Can you tell me how to implement file rename in CVS without any of the
> following happening:
>
> 1) Having a file suddenly appear in old versions that was not there.
> 2) Breaking the history trail on the file.

mv oldfile newfile
cvs rm oldfile
cvs add newfile

cvs ci

Add the comment "this file is oldfile renamed" to the checkin.

Admittedly this is not perfect but it has never given me any trouble.

It has occured to me that if you _really_ want to be able to do stuff across the rename (what stuff, though? All I can think of is a diff, which isn't so hard to accomplish manually), then it must be easier to modify CVS (or perhaps layer something on top of it) than to start again, by a long chalk.

Cheers,

Ben.

--
http://www.apache-ssl.org/ben.html