From owner-freebsd-questions@FreeBSD.ORG Mon Aug 5 08:25:41 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id EA1A95ED; Mon, 5 Aug 2013 08:25:41 +0000 (UTC) (envelope-from david.i.noel@gmail.com) Received: from mail-wg0-x229.google.com (mail-wg0-x229.google.com [IPv6:2a00:1450:400c:c00::229]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 5B7DF2EAC; Mon, 5 Aug 2013 08:25:41 +0000 (UTC) Received: by mail-wg0-f41.google.com with SMTP id l18so1065355wgh.0 for ; Mon, 05 Aug 2013 01:25:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=y6rWRfBPh6sR4ehfn0l7vU8JZPdz8hiY+MFSsxh3avc=; b=qgZEHmcxrZp4tdE44qMhm9Ep71eXMRnBZSL/4tOKKq95cYWizihRrD/CiC7B2rbMK0 9IUGudUm5F6oNuwPjAsiH8gEj3MXWGS8eRxa13K3Yg7acXP3ozgd+7rbsEdWtq1Zz9sd GW7aZaUkzfioueXAm0poMMdrkToQgvNPu3l+05P9NBaCCka0ypObdWSmmKTYW11qYRPI Vd6aXtk07W9YHPCjfvptrcgpZuSsEmyz/iNAu/5Bq6+cFNxNPqZknETV4P+9q+KlqVL3 sOoPjwhq7E5+RBzB+qyrrtumnqx0teyLZIdMpLsEbNZPVvjRfSO7e7WR2i/DnGkCzxQr WlTw== MIME-Version: 1.0 X-Received: by 10.180.77.164 with SMTP id t4mr5749780wiw.58.1375691139747; Mon, 05 Aug 2013 01:25:39 -0700 (PDT) Received: by 10.217.2.141 with HTTP; Mon, 5 Aug 2013 01:25:39 -0700 (PDT) In-Reply-To: <51FF5F70.7020205@freebsd.org> References: <51FF5F70.7020205@freebsd.org> Date: Mon, 5 Aug 2013 03:25:39 -0500 Message-ID: Subject: Re: Update /usr/src with subversion From: David Noel To: Matthew Seaman Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: David.I.Noel@gmail.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Aug 2013 08:25:42 -0000 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 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" >