From owner-freebsd-ports@FreeBSD.ORG Fri Feb 8 20:13:30 2013 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id C2BC1F89; Fri, 8 Feb 2013 20:13:30 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: from dirj.bris.ac.uk (dirj.bris.ac.uk [137.222.10.78]) by mx1.freebsd.org (Postfix) with ESMTP id 82F4ED11; Fri, 8 Feb 2013 20:13:30 +0000 (UTC) Received: from irix.bris.ac.uk ([137.222.10.39] helo=ncs.bris.ac.uk) by dirj.bris.ac.uk with esmtp (Exim 4.72) (envelope-from ) id 1U3uK5-00009y-H8; Fri, 08 Feb 2013 20:13:29 +0000 Received: from mech-cluster241.men.bris.ac.uk ([137.222.187.241]) by ncs.bris.ac.uk with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1U3uK5-000229-CZ; Fri, 08 Feb 2013 20:13:25 +0000 Received: from mech-cluster241.men.bris.ac.uk (localhost [127.0.0.1]) by mech-cluster241.men.bris.ac.uk (8.14.6/8.14.6) with ESMTP id r18KDPul036211; Fri, 8 Feb 2013 20:13:25 GMT (envelope-from mexas@mech-cluster241.men.bris.ac.uk) Received: (from mexas@localhost) by mech-cluster241.men.bris.ac.uk (8.14.6/8.14.6/Submit) id r18KDPjQ036210; Fri, 8 Feb 2013 20:13:25 GMT (envelope-from mexas) Date: Fri, 8 Feb 2013 20:13:25 GMT From: Anton Shterenlikht Message-Id: <201302082013.r18KDPjQ036210@mech-cluster241.men.bris.ac.uk> To: glarkin@FreeBSD.org Subject: Re: how to move 9.1 ports to HEAD? In-Reply-To: <51151B52.7010706@FreeBSD.org> X-Spam-Score: -1.3 X-Spam-Level: - Cc: freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: mexas@bristol.ac.uk List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Feb 2013 20:13:30 -0000 From glarkin@freebsd.org Fri Feb 8 17:33:07 2013 On 2/8/13 10:04 AM, Anton Shterenlikht wrote: > From glarkin@freebsd.org Fri Feb 8 14:54:13 2013 > > On 2/8/13 9:47 AM, Anton Shterenlikht wrote: > I just installed > 9.1-release including the ports tree: > > root@zzz:/usr/ports # svn > info /usr/ports/ Path: . Working Copy > Root Path: /usr/ports URL: > > svn://svn.freebsd.org/ports/branches/RELENG_9_1_0 Repository > Root: > svn://svn.freebsd.org/ports Repository UUID: > > 35697150-7ecd-e111-bb59-0022644237b5 Revision: 311939 Node Kind: > > directory Schedule: normal Last Changed Author: beat Last Changed > > Rev: 307934 Last Changed Date: 2012-11-28 20:30:08 +0000 (Wed, 28 > > Nov 2012) > > root@zzz:/usr/ports # > > I want to move the ports > tree to HEAD. Is there an easy way (i.e. > not involving rm -rf > /usr/ports/* and then a fresh svn co) of > achieving this? > > I > tried "svn switch" and "svn relocate", but it seems these are > > intended for just changing the root URL, i.e. when the tree itself > > is not changing. > > Please advise > > Thanks > > Anton > > > Hi Anton, > > The command "svn switch svn://svn.freebsd.org/ports/head/" will do > what you want. "svn relocate" repoints a working copy to a new > URL, if the repository has changed on the server side, but "svn > switch" updates the local working copy to match a new URL within > the same repository on the server. > > Hope it helps, Greg - -- Greg Larkin > > I think I get it. > > What you suggested worked, thank you: > > root@zzz:/usr/ports # svn info Path: . Working Copy Root Path: > /usr/ports URL: svn://svn.freebsd.org/ports/head Repository Root: > svn://svn.freebsd.org/ports Repository UUID: > 35697150-7ecd-e111-bb59-0022644237b5 Revision: 311942 Node Kind: > directory Schedule: normal Last Changed Author: tota Last Changed > Rev: 311942 Last Changed Date: 2013-02-08 14:53:49 +0000 (Fri, 08 > Feb 2013) > > However, this didn't work: > > root@zzz:/usr/ports # svn switch > svn://svn0.us-east.freebsd.org/ports/head svn: E155025: > 'svn://svn.freebsd.org/ports/head' is not the same repository as > 'svn://svn0.us-east.freebsd.org/ports' root@zzz:/usr/ports # > > I read somewhere that it is advisable to use these mirrors to > offload the main server. > > So how can easily switch to "east" (or "west")? > > Thanks > > Anton > Hi Anton, Ok, in that case, I would try the following, assuming your repository root is still svn://svn.freebsd.org/ports: cd /usr/ports svn relocate svn://svn0.us-east.freebsd.org/ports/ svn switch svn://svn0.us-east.freebsd.org/ports/head/ I was already on head, so just svn relocate svn://svn0.us-east.freebsd.org/ports/head was sufficient. I think I got the idea now for when to use switch and when relocate. Many thanks Anton