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

Re: Can't commit both x and y, as they both refer to the same URL

From: derefed <spam_at_ultimatejourney.net>
Date: Sun, 14 Sep 2008 16:06:27 -0700 (PDT)

Simon Large-5 wrote:
>
> 2008/9/14 derefed <spam_at_ultimatejourney.net>:
>>
>> I'm trying to set up a repository for my Java project which has the
>> following
>> directory structure:
>>
>> Project
>> -bin
>> -doc
>> -src
>>
>> Where the "bin" subdir has the same subdir structure as "src", only the
>> files are the compiled versions. When creating a fresh repository and
>> adding
>> everything in Project and then committing everything, I get an error like
>> "Can't commit both file x and file y, as they both refer to the same
>> URL",
>> and it's always a file of the same name (save the extension), one from
>> "bin"
>> and one from "src".
>>
>> After searching the web a bit, I found that the usual cause of this is
>> when
>> someone copies an SVN directory manually without using "svn copy". This
>> isn't the case here, as this is a fresh repository committal. I also
>> found
>> that running "svn info" on the directories in question can give more
>> info.
>> After trying this, it would appear that both Project/bin and Project/src
>> DO
>> point to the same URL on the SVN server, Project/src. I never set it up
>> this
>> way, however. Even when I make a new rep to try it all over again and add
>> them separately, the URLs eventually end up pointing back to the same
>> thing
>> again between when I add and commit the files.
>>
>> Could this be a setting in TortoiseSVN that's overriding basic SVN
>> behavior?
>> How can I disable it? Also, how can I change those URLs now so that they
>> point to the right places, i.e., Project/bin -> Project/bin and
>> Project/src
>> -> Project/src?
>
> Certainly not a setting in TSVN. Where would be the sense in that?
> Please can you try to reproduce this with the Subversion command line
> client.
>

Perhaps to streamline the adding of projects like this by circumventing the
"bin" folder? I have no idea.

Not sure how I would reproduce it with the command line tool, but what I did
was really quite simple:
- Right clicked on the "Project" folder and selected "Add...", and with
everything selected, hit "OK"
- Right clicked on "Project" again and hit "Commit"

> Do you have any shortcuts or links in your project which might cause this?
>

No. It's a very simple project at this point, and unless Eclipse is doing
something weird (which I very much doubt, as I've successfully committed
full Eclipse projects before), then there should be nothing of the sort.

Remember that "bin" and "src", when examined under "svn info", display the
same repository URL. Is there a way to simply change this value somewhere?

-- 
View this message in context: http://www.nabble.com/Can%27t-commit-both-x-and-y%2C-as-they-both-refer-to-the-same-URL-tp19485030p19485310.html
Sent from the tortoisesvn - users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_tortoisesvn.tigris.org
For additional commands, e-mail: users-help_at_tortoisesvn.tigris.org
Received on 2008-09-15 01:06:39 CEST

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