Re: [ILUG] cvs question

From: Dave O Connor (doc at domain redbrick.dcu.ie)
Date: Mon 20 Aug 2001 - 15:31:10 IST


Ken Guest said on Mon, Aug 20, 2001 at 03:24:16PM +0100:
> hi,
>
> a file that got checked into CVS here has the wrong name and I was
> wondering what the best way to go about taking care of the problem is.
>
> Do I just rename the local file and the corresponding repository file
> "<filename>,v" as I don't want to loose the history/information
> associated with that file.
>
Renaming the file will probably lose information anyway.

What I'd do is cvs delete the file (this doesn't kill the history stuff), with
a comment like "Renamed to newblah.c". I'd then check in a copy of the file as a
new file, with a comment like "renamed from oldblah.c".

Or:

mv oldblah.c newblah.c
cvs delete oldblah.c
cvs add newblah.c
cvs commit -m "renamed oldblah.c to newblah.c"

        - DoC

-- 
 I know I believe in nothing,  | <doc at redbrick.dcu.ie>
  ...but it is my nothing.     |


This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:11:44 GMT