From owner-freebsd-hubs@FreeBSD.ORG Fri Jul 20 00:17:16 2012 Return-Path: Delivered-To: freebsd-hubs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 646AA106566C for ; Fri, 20 Jul 2012 00:17:16 +0000 (UTC) (envelope-from john.marshall@riverwillow.com.au) Received: from mail1.riverwillow.net.au (mail1.riverwillow.net.au [203.58.93.36]) by mx1.freebsd.org (Postfix) with ESMTP id D84E08FC08 for ; Fri, 20 Jul 2012 00:17:15 +0000 (UTC) Received: from rwpc15.mby.riverwillow.net.au (rwpc15.mby.riverwillow.net.au [172.25.24.201]) (authenticated bits=0) by mail1.riverwillow.net.au (8.14.5/8.14.5) with ESMTP id q6K0H989069601 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 20 Jul 2012 10:17:09 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=riverwillow.com.au; s=m1001; t=1342743429; bh=O6rUvVB6N+HWIJ8JpvPg0Sn0MKSemKyyjVz7pvSHRVw=; h=Date:From:To:Subject:References:In-Reply-To; b=wHloQJuQlmP+eQVPW3nhg3sys//rxb8iKvQ9228Cnd33KzzbS7iQVR78MHHSo+oGn +0OmlB0R1ASMsEuEYqp4U7lGS55hPx8bYivNpQTs4bugsTbMhV3btOfoRf21mNEnKh kWpYOdON7pM2fXN69PH0IQXyGUHwTD136Rfl6MSQ= Received: from rwpc15.mby.riverwillow.net.au (john@localhost [127.0.0.1]) by rwpc15.mby.riverwillow.net.au (8.14.5/8.14.5) with ESMTP id q6K0H9xF007851 for ; Fri, 20 Jul 2012 10:17:09 +1000 (AEST) (envelope-from john.marshall@riverwillow.com.au) Received: (from john@localhost) by rwpc15.mby.riverwillow.net.au (8.14.5/8.14.5/Submit) id q6K0H9Rb007850 for freebsd-hubs@freebsd.org; Fri, 20 Jul 2012 10:17:09 +1000 (AEST) (envelope-from john) Date: Fri, 20 Jul 2012 10:17:09 +1000 From: John Marshall To: freebsd-hubs@freebsd.org Message-ID: <20120720001709.GA7331@rwpc15.mby.riverwillow.net.au> Mail-Followup-To: freebsd-hubs@freebsd.org References: <20120719123351.GE1456@rwpc15.mby.riverwillow.net.au> <64B03A92-9A94-47C1-8CE6-DDE1BFAA6952@FreeBSD.org> <20488.34794.538940.282563@hergotha.csail.mit.edu> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="wRRV7LY7NUeQGEoC" Content-Disposition: inline In-Reply-To: <20488.34794.538940.282563@hergotha.csail.mit.edu> User-Agent: Mutt/1.4.2.3i OpenPGP: id=A29A84A2; url=http://pki.riverwillow.com.au/pgp/johnmarshall.asc Subject: Re: Repository UUID's in doc and ports SVN Mirror Seed Files X-BeenThere: freebsd-hubs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "FreeBSD Distributions Hubs: mail sup ftp" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Jul 2012 00:17:16 -0000 --wRRV7LY7NUeQGEoC Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, 19 Jul 2012, 18:19 -0400, Garrett Wollman wrote: > < said: > > Have you yet found any cases where this causes actual problems? >=20 > The case where it causes problems is when you do an initial checkout > from a mirror and want to "svn switch" to the master repo in advance > of doing a checkin or an update. and not just for committers but for end users who need to switch to a different source (e.g. original mirror is no longer available). My understanding of how Subversion mirrors are meant to be used is that they should all be exact read-only replicas of the master and that clients ought to be able to use any of them for checkout or update operations. If mirrors have different UUID's, the svn client "knows" that they are different repositories and refuses to use them. The svn client will only accept updates from a source repository which has the same UUID as the repository from which the initial checkout was made. $ mkdir doctree $ svn checkout file:///work/svn/doc/head doctree $ svn info doctree Path: doctree Working Copy Root Path: /work/svn/doctree URL: file:///work/svn/doc/head Repository Root: file:///work/svn/doc Repository UUID: 8026a357-cfce-e111-996c-001c23d10e55 $ svn checkout svn://svn.freebsd.org/doc/head doctree svn: E155000: '/work/svn/doctree' is already a working copy for a different= URL $ svn relocate svn://svn.freebsd.org/doc/head doctree svn: E195009: The repository at 'svn://svn.freebsd.org/doc/head' has uuid '= c2e8774f-c49f-e111-b436-862b2bbc8956', but the WC has '8026a357-cfce-e111-9= 96c-001c23d10e55' $ svnlook uuid /work/svn/doc 8026a357-cfce-e111-996c-001c23d10e55 $ svnadmin setuuid /work/svn/doc c2e8774f-c49f-e111-b436-862b2bbc8956 $ mkdir newdoctree $ svn checkout file:///work/svn/doc/head newdoctree $ svn info newdoctree Path: newdoctree Working Copy Root Path: /work/svn/newdoctree URL: file:///work/svn/doc/head Repository Root: file:///work/svn/doc Repository UUID: c2e8774f-c49f-e111-b436-862b2bbc8956 $ svn relocate svn://svn.freebsd.org/doc/head newdoctree $ svn info newdoctree Path: newdoctree Working Copy Root Path: /work/svn/newdoctree URL: svn://svn.freebsd.org/doc/head Repository Root: svn://svn.freebsd.org/doc Repository UUID: c2e8774f-c49f-e111-b436-862b2bbc8956 $ svn checkout svn://svn.freebsd.org/doc/head newdoctree Checked out revision 39236. $ svn relocate file:///work/svn/doc/head newdoctree $ svn info newdoctree Path: newdoctree Working Copy Root Path: /work/svn/newdoctree URL: file:///work/svn/doc/head Repository Root: file:///work/svn/doc Repository UUID: c2e8774f-c49f-e111-b436-862b2bbc8956 $ svn checkout file:///work/svn/doc/head newdoctree Checked out revision 39236. DOCUMENTATION PLUG The documentation provided with the Subversion port is excellent and covers all of this. /usr/local/share/doc/subversion/ --=20 John Marshall --wRRV7LY7NUeQGEoC Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iEYEARECAAYFAlAIo4UACgkQw/tAaKKahKIQUACfbdqVQWymevdmRiZAIHwvtb7n MFoAoI6iXnqX0jwmgb6QkQV5m7g/6Rrl =FRCf -----END PGP SIGNATURE----- --wRRV7LY7NUeQGEoC--