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

Re: switch segfaults

From: Julian Foad <julianfoad_at_btopenworld.com>
Date: Tue, 6 Jan 2015 10:24:44 +0000

Stefan Sperling wrote:
> On Mon, Jan 05, 2015 at 08:01:48PM +0100, Fabien Renaud wrote:
>> svn switch segfaults if I do the following three steps:
>>
>> svn checkout http://teyjus.googlecode.com/svn teyjus
>> cd teyjus
>> svn switch https://teyjus.googlecode.com/svn
>>
>>
>> I'm running Debian Jessie with the following subversion version:
>> svn, version 1.8.10 (r1615264)
>>    compiled Dec 17 2014, 05:12:58 on x86_64-pc-linux-gnu
>>
>> Please let me know if you need more information if you cannot reproduce the bug.
>
> Not reproducible for me with 1.8.11, latest 1.8.x, and trunk, on OpenBSD.
>
> $ svn switch https://teyjus.googlecode.com/svn
> subversion/svn/switch-cmd.c:178: (apr_err=SVN_ERR_WC_INVALID_SWITCH)
> svn: E155025: 'svn switch' does not support switching a working copy to
> a different repository
> subversion/libsvn_client/switch.c:484,
> subversion/libsvn_client/switch.c:214: (apr_err=SVN_ERR_WC_INVALID_SWITCH)
> svn: E155025: 'http://teyjus.googlecode.com/svn'
> is not the same repository as
> 'https://teyjus.googlecode.com/svn'
>
> I suspect the package in Debian Jessy is broken for some reason.

I get the same result as Stefan when using 1.8.10 on Ubuntu 14.04 64-bit. Tried with both the package provided by WANdisco and also with a self-built 1.8.10 (built in maintainer mode).

FWIW, you probably know this but the command to do what you want here is "svn relocate" (previously known as "svn switch --relocate"):

  $ svn relocate https://teyjus.googlecode.com/svn

The error "svn switch" gives is wrong: it *is* the same repository in this case. We should improve the error message, perhaps suggesting the user might want "svn relocate" instead.

- Julian
Received on 2015-01-06 11:25:36 CET

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