You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Luis Mochan <mo...@fis.unam.mx> on 2012/01/04 01:04:31 UTC

svn does not match expected url

Today I tried to 'svn update' a very old folder from a very old repository
and got the error
     svn does not match expected url
I read about some related problems where it was pointed out that the
problem comes from an inconsistent use of upper and lower case in
windows and linux machines. However, in my case, both the repository
and the folder were on linux machines. Nevertheless, the repository is
in a machine which is listed in my /etc/hosts and thus has an abbreviated
name. Its full name is em.fis.unam.mx and its short name is em, so I
sometimes use 
    svn ... svn://em.fis.unam.mx/...
and sometimes just
    svn ... svn://em/...

I checked manually that my folder was up to date and then removed it
to check out a fresh copy, so now I cannot reproduce the error. 

Nevertheless, my questions are: Is this a known issue? Should I always
use the full name of the repository host? Is there a decent way to
correct the problem (in case it appears again in the future)?

Thanks and best regards,
Luis

-- 

                                                                  o
W. Luis Mochán,                      | tel:(52)(777)329-1734     /<(*)
Instituto de Ciencias Físicas, UNAM  | fax:(52)(777)317-5388     `>/   /\
Apdo. Postal 48-3, 62251             |                           (*)/\/  \
Cuernavaca, Morelos, México          | mochan@fis.unam.mx   /\_/\__/

O< ascii ribbon campaign - stop html mail - www.asciiribbon.org                 



Re: svn does not match expected url

Posted by Daniel Shahaf <d....@daniel.shahaf.name>.
Ryan Schmidt wrote on Wed, Jan 04, 2012 at 18:48:05 -0600:
> 
> On Jan 4, 2012, at 09:14, Luis Mochan wrote:
> 
> >> Mixing and matching will cause trouble. It should be possible to use
> >> "svn switch" to set the URL to be consistent throughout your working
> >> copy.
> > 
> > Wouldn't it be 'svn relocate'? (Just read about it in the manual)
> 
> In old versions of Subversion: svn switch --relocate
> 
> In Subversion 1.7 and up: svn relocate
> 

1.7 recognizes both syntaxes, for backwards compatibility.

Re: svn does not match expected url

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Jan 4, 2012, at 09:14, Luis Mochan wrote:

>> Mixing and matching will cause trouble. It should be possible to use
>> "svn switch" to set the URL to be consistent throughout your working
>> copy.
> 
> Wouldn't it be 'svn relocate'? (Just read about it in the manual)

In old versions of Subversion: svn switch --relocate

In Subversion 1.7 and up: svn relocate




Re: svn does not match expected url

Posted by Luis Mochan <mo...@fis.unam.mx>.
> Mixing and matching will cause trouble. It should be possible to use
> "svn switch" to set the URL to be consistent throughout your working
> copy.

Wouldn't it be 'svn relocate'? (Just read about it in the manual)

Regards,
Luis

Re: svn does not match expected url

Posted by Nico Kadel-Garcia <nk...@gmail.com>.
On Tue, Jan 3, 2012 at 7:04 PM, Luis Mochan <mo...@fis.unam.mx> wrote:
> Today I tried to 'svn update' a very old folder from a very old repository

You don't mention which old server software, or client software, you
used to check this old folder out.

> name. Its full name is em.fis.unam.mx and its short name is em, so I
> sometimes use
>    svn ... svn://em.fis.unam.mx/...
> and sometimes just
>    svn ... svn://em/...

Mixing and matching will cause trouble. It should be possible to use
"svn switch" to set the URL to be consistent throughout your working
copy.

Did you maybe have an svn:extern you were dealing with?


> I checked manually that my folder was up to date and then removed it
> to check out a fresh copy, so now I cannot reproduce the error.
>
> Nevertheless, my questions are: Is this a known issue? Should I always
> use the full name of the repository host? Is there a decent way to
> correct the problem (in case it appears again in the future)?

I recommend fully qualified host names. If you have a server named
"svn" at work" and one named "svn" at home, life gets confusing.

What you have in /etc/hosts, and even searchable DNS domains in
/etc/resolv.conf, should not matter as long as the name resolves by
hook or by crook.

> Thanks and best regards,
> Luis
>
> --
>
>                                                                  o
> W. Luis Mochán,                      | tel:(52)(777)329-1734     /<(*)
> Instituto de Ciencias Físicas, UNAM  | fax:(52)(777)317-5388     `>/   /\
> Apdo. Postal 48-3, 62251             |                           (*)/\/  \
> Cuernavaca, Morelos, México          | mochan@fis.unam.mx   /\_/\__/
>
> O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
>
>