Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Mar 1999 12:07:14 -0600 (CST)
From:      Jacques Vidrine <nectar@nectar.com>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   bin/10510: Remote cvs botches commits on occassion
Message-ID:  <199903091807.MAA93173@spawn.nectar.com>

next in thread | raw e-mail | index | archive | help

>Number:         10510
>Category:       bin
>Synopsis:       Remote cvs botches commits on occassion
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Mar  9 10:10:00 PST 1999
>Closed-Date:
>Last-Modified:
>Originator:     Jacques Vidrine
>Release:        FreeBSD 3.1-STABLE i386
>Organization:
None to be had
>Environment:

	FreeBSD 3.x - 4.x

>Description:

	On occassion, when committing a new file in place of a dead
	revision using remote cvs (i.e. ``cvs server''), cvs barfs
	and leaves the repository in an inconsistent state.  The
	repository will contain an rcsfile with the latest revision
	being ``state dead'', and further attempts to commit new
	revisions will fail with ``cannot add file `foo' when RCS file
	`..../foo,v' already exists''.

	As an example session:

	local_machine$ cvs ci
	[fill out the log]
	cvs commit: Examining .
	cvs server: warning: cannot stat patch-ag: No such file or directory
	Checking in patch-ag;
	/home/ncvs/ports/x11/gnomecore/patches/patch-ag,v  <--  patch-ag
	cvs [server aborted]: can't stat patch-ag: No such file or directory
	cvs commit: saving log message in /tmp/cvsm91737

	[wonder what went wrong, try to commit again]
	local_machine$ cvs ci
	[fill out log]
	cvs commit: Examining .
	cvs commit: cannot add file `patch-ag' when RCS file `/home/ncvs/ports/x11/gnomecore/patches/patch-ag,v' already exists
	cvs [commit aborted]: correct above errors first!


>How-To-Repeat:

	Not sure -- it doesn't happen always.  But a prerequisite is 
	that you are committing a revision to a file that has previously
	been ``cvs remove''d.
	
	In the above example, the CVS/Entries file looks normal:

	/patch-ab/1.3/Fri Jan  1 06:20:55 1999//
	/patch-ac/1.3/Fri Jan  1 06:20:55 1999//
	/patch-ad/1.3/Fri Jan  1 06:20:55 1999//
	/patch-aa/1.8/Mon Mar  8 19:22:03 1999//
	/patch-ae/1.8/Mon Mar  8 19:22:03 1999//
	/patch-af/1.6/Mon Mar  8 19:22:03 1999//
	/patch-ag/0/Mon Mar  8 19:22:03 1999//
	/patch-ah/0/Mon Mar  8 19:22:03 1999//
	D

>Fix:
	

>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199903091807.MAA93173>