[Top][All Lists]

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

RE: CVS generates new files

From: Dale . Miller
Subject: RE: CVS generates new files
Date: Thu, 16 May 2002 17:38:57 -0500


In under
"A.16.2 update output" for the C status, it states:

CVS protects you by keeping an unmodified copy of your file 
in your working directory, with the name `.#file.revision' 
where revision is the revision that your modified file started from. 

On a Redhat7.3 they must be using `file~revision~` for the 
backup copy.  Since it ends with a tilde (~) a "cvs add" should
ignore the files.

If you modify a file in your work area and do a cvs update of the
file with someone elses changes being merged into it you may be
happy someday that you have CVS creating backup files for you.
If the update created a lot of conflicts in your file and you
wished you had not done the update, you have something to fall 
back to.  I suggest ignore the file or set up a crontab to remove
the tilde files from time to time.

On our system the files are named using `.#file.revision` and I
clean my Master Build Library (MBL) once a month to remove these
files that are over one month old with the following cron entry:

# --- clean CVS build area .#* files first day of the month
30 11 1 * * find /sdhs_code/MBL/alpha /sdhs_code2/MBL/sco -ctime +30 -name
'\.#*[0-9]' -exec rm -f {} \;

You could look for files that end with a tilde (-name '*~')

Dale Miller
Northrop Grumman IT
Bellevue, NE 

> -----Original Message-----
> From: Rasmus Resen Amossen [mailto:address@hidden
> Sent: Wednesday, May 15, 2002 3:35 PM
> To: address@hidden
> Subject: CVS generates new files
> cvs has began to generate new files when I run "cvs update" or "cvs
> checkin".
> Fx. I have a file, "helloworld" in version 1.7 in my working catalog,
> and the file is newer on the server. When I run "cvs update", the file
> "helloworld" is beeing merged with the file on the server, but the old
> version (1.7) is copied to a new file automatically: 
> "helloworld.~1.7~"
> (in my working catalog).
> Also when I checkin the "helloworld" file, a new file is 
> generated in my
> working catalog: "helloworld.~1.7.~". 
> Why that? I don't want all these extra files. How can I avoid them?
> I use Redhat7.3, cvs-1.11.1p1-7, xinetd.
> Thanks!
> Rasmus
> _______________________________________________
> Info-cvs mailing list
> address@hidden

reply via email to

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