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

Re: [TSVN] Two files differing only in case prevent update

From: SteveKing <stefankueng_at_gmail.com>
Date: 2004-07-14 11:57:34 CEST

On Tue, 13 Jul 2004 15:26:11 -0700, Dr. Rainer Hessmer
<rainerh@dataworkssystems.com> wrote:

> I am the evangelist for Subversion and TortoiseSVN in our company. We
> successfully use both since about half a year. There is one thing that
> causes a bit a frustration amongst our developers:
>
> Every so often somebody gets to the point where the same file exists
> twice in a given directory in the repository only differing in case
> (e.g., Web.config and web.config). Once you get to this point an attempt
> to update your working copy will result in this error message: "Failed
> to add file 'c:\bla\bla\web.config': object of the same name already
> exists."

The real question now is: how did you get to this point? Since TSVN
1.0.5 before every commit a check is done if a file has been changed
just in case and if such a file is found it's renamed back. So that
situation shouldn't even happen anymore.

> I know how to get out of the problem by deleting one of the two files
> via a server-side delete. I also understand that Subversion has to
> handle file and directory names as case sensitive in order to be useful
> for Linux and other case sensitive platforms.
>
> However, I think TortoiseSVN could handle this error situation more
> gracefully. A few options that I can think of are:
> - Instead of the error message allow the user to specify which of the
> two files s/he wants to use (it would also be nice to ask the user
> whether the other file should be deleted)

Since you already know that Subversion must deal with such situations,
you should also know that the error message is thrown by the
Subversion library. TSVN can't stop that error from happening, and
neither can it interfere - once the Subversion library throws the
error, there's no way to keep the function from stopping.

> - Prevent the user from adding a file that only differs in case from a
> file that already exists in the same directory in the repository. Since
> TortoiseSVN is a pure Windows client it could perform this check (the
> same check would not make sense for the platform neutral Subversion
> system).

How about updating your TSVN client?

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Wed Jul 14 13:02:37 2004

This is an archived mail posted to the TortoiseSVN Dev mailing list.

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