Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Aug 2013 03:25:39 -0500
From:      David Noel <david.i.noel@gmail.com>
To:        Matthew Seaman <matthew@freebsd.org>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Update /usr/src with subversion
Message-ID:  <CAHAXwYD2kNPGDurqGFvnQDNca6xFuRr2cn_6GJL1mC6WqhusuA@mail.gmail.com>
In-Reply-To: <51FF5F70.7020205@freebsd.org>
References:  <CAHAXwYDuRuA3iiWfu3yB19ShKMPikLu+21bXkmZf4X2AjLaMBw@mail.gmail.com> <51FF5F70.7020205@freebsd.org>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
Ok great, thanks Matthew. I tried a different search query and
actually found a similar question on the forums:
http://forums.freebsd.org/showthread.php?t=35014

Your solution looks a bit cleaner than the one proposed there: "rm -r
/usr/src/.svn, and then check out the new branch".

I'll check out the man for svn switch.

Thanks again,

-David

On 8/5/13, Matthew Seaman <matthew@freebsd.org> wrote:
> On 05/08/2013 09:00, David Noel wrote:
>> Does anyone know how a workaround for having to rm -rf /usr/src every
>> time the source URL changes? I'm updating from 8.3 to 8.4 with
>> subversion and got a message along the lines of "Error: /usr/src/
>> contains files from a different URL". -David
>
> You need 'svn switch' -- so, if you've got some other branch checked
> out, and you want to have 8.4-RELEASE instead, then it's something like:
>
>    # svn switch ^/base/releng/8.4
>
> This will speedily change your checked out tree with minimal network IO.
>
> You can also use 'svn switch --relocate' to change which svn servers you
> have the tree checked out from or the protocol (svn://, https:// etc)
> used.  See the output of 'svn help switch' for details.
>
> 	Cheers,
>
> 	Matthew
>
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "freebsd-questions-unsubscribe@freebsd.org"
>



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?CAHAXwYD2kNPGDurqGFvnQDNca6xFuRr2cn_6GJL1mC6WqhusuA>