Re: subversion: svn copy WC URL fails
Re: subversion: svn copy WC URL fails
- Subject: Re: subversion: svn copy WC URL fails
- From: Jeremy Pereira <email@hidden>
- Date: Wed, 17 Mar 2010 11:26:48 +0000
On 17 Mar 2010, at 08:51, Andreas Grosam wrote:
>
> $ svn copy -m "test" AGC file:///var/svn/repos/MyProject/Applications/tags/Test
> svn: Commit failed (details follow):
> svn: Source url 'file://localhost/var/svn/repos/MyProject/AGC/trunk' is from different repository
> $ ls
> AGC Demo3
>
>
< SNIP >
>
> It's strange, because I can successfully copy from URL to URL within the same repository. That is, the command above would work if I would perform it manually.
The answer is simpler than you might think. The problem is that the error message you are being given is slightly misleading (a common problem with Subversion error messages).
Basically, when you made the working copy, you did the following:
svn checkout file://localhost/var/svn/repos/MyProject/AGC/trunk AGC
But you are referring to the repository in your copy using a URL without "localhost" in it. Subversion is complaining that the URLs - specifically, the host part - do not match.
Try this:
svn copy -m "test" AGC file://localhost/var/svn/repos/MyProject/Applications/tags/Test
Incidentally, if you really were trying to copy to a different repository, the error message would be completely different - a bit like this:
svn: Repository UUID '3aee420b-b423-4134-8deb-33de5aeee178' doesn't match expected UUID '8212d9a3-1efe-4bd2-9766-b0c8e952b045'
>
>
> Andreas
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Xcode-users mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden