[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: A "file exists" error even when file does not exist.

From: John Thile <gilrain_at_gmail.com>
Date: 2006-09-29 17:44:09 CEST

Hi folks,

For list records and the help of future Internet searchers, I'll go
ahead and post what the problem on this was.

> I'm trying to add a file of a certain name to a folder in one of our
> repositories. However, when I do I get a "Commit failed (details
> follow): File '...' already exists". I've searched on the problem, but
> previous reports were answered with "well, do an update first!" In
> this case, at least, that's not the problem: I'm updating immediately
> before the attempt, and no file of the same name exists.
>
> Now, a file of the same name existed in a past revision and was later
> deleted. I assume that's not the problem, however, because it would be
> pretty silly if any time a file was checked in its name was reserved
> forever, even if deleted.

The file was a binary file with svn:needs-lock set, so I decided to,
on a whim, check if there was still a lock on the file even though it
had been deleted many revisions ago. Sure enough, "svnadmin lslocks"
showed that the file was still locked. I removed the lock with
"svnadmin rmlocks" and the problem disappeared.

A small feature request to avoid this in the future might be to make
releasing a lock automatic on a deleted file. I can't imagine an
instance in which you'd want to keep a lock on a deleted file, so it
should be okay.

Anyway, one for the record.

Thanks,

John Thile

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Sep 29 17:45:04 2006

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.