Repository UUID's in doc and ports SVN Mirror Seed Files

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Repository UUID's in doc and ports SVN Mirror Seed Files

John Marshall-2
Thank you to whoever went to the trouble of providing updated Subversion
mirror seed files on the FTP servers (/pub/FreeBSD/development/subversion/).
The particular files to which I refer are:

  svnmirror-base-r238500.tar.xz
  svnmirror-doc-r39217.tar.xz
  svnmirror-ports-r300897.tar.xz

Please be aware that the seed mirror repositories for doc and ports have
UUID's which differ from their respective master repositories.  The
mirror seed for base is fine.

For example:
$ tar -xf svnmirror-ports-r300897.tar.xz
$ ls
ports
$ pwd
/work/svn
$ svn info file:///work/svn/ports
Path: ports
URL: file:///work/svn/ports
Repository Root: file:///work/svn/ports
Repository UUID: aed309b6-a8cd-e111-996c-001c23d10e55
Revision: 300897

$ svnsync info file:///work/svn/ports
Source URL: svn://svn.freebsd.org/ports
Source Repository UUID: 35697150-7ecd-e111-bb59-0022644237b5
Last Merged Revision: 300897

Folks who have used these seed files to setup mirror repositories can
easily set the mirror's UUID to match the source repository with:

$ svnadmin setuuid /local/mirror/repository <same-uuid-as-source>

--
John Marshall

attachment0 (203 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Repository UUID's in doc and ports SVN Mirror Seed Files

Simon L. B. Nielsen-4

On 19 Jul 2012, at 13:33, John Marshall wrote:

> Thank you to whoever went to the trouble of providing updated Subversion
> mirror seed files on the FTP servers (/pub/FreeBSD/development/subversion/).
> The particular files to which I refer are:
>
>  svnmirror-base-r238500.tar.xz
>  svnmirror-doc-r39217.tar.xz
>  svnmirror-ports-r300897.tar.xz
>
> Please be aware that the seed mirror repositories for doc and ports have
> UUID's which differ from their respective master repositories.  The
> mirror seed for base is fine.

Hmm, indeed. I didn't think of that when creating the mirror the seeds are created from. I will fix that tomorrow and create new seed files.

Have you yet found any cases where this causes actual problems?

Thanks for letting us know.

--
Simon L. B. Nielsen
Hat: FreeBSD.org admins team

_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hubs
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

Re: Repository UUID's in doc and ports SVN Mirror Seed Files

Garrett Wollman-4
<<On Thu, 19 Jul 2012 23:16:08 +0100, "Simon L. B. Nielsen" <[hidden email]> said:

> Hmm, indeed. I didn't think of that when creating the mirror the
> seeds are created from. I will fix that tomorrow and create new seed
> files.

> Have you yet found any cases where this causes actual problems?

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.

-GAWollman
_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hubs
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

Re: Repository UUID's in doc and ports SVN Mirror Seed Files

John Marshall-2
On Thu, 19 Jul 2012, 18:19 -0400, Garrett Wollman wrote:
> <<On Thu, 19 Jul 2012 23:16:08 +0100, "Simon L. B. Nielsen" <[hidden email]> said:
> > Have you yet found any cases where this causes actual problems?
>
> 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-996c-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/

--
John Marshall

attachment0 (203 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Repository UUID's in doc and ports SVN Mirror Seed Files

Simon L. B. Nielsen-4
In reply to this post by Simon L. B. Nielsen-4

On 19 Jul 2012, at 23:16, Simon L. B. Nielsen wrote:

>
> On 19 Jul 2012, at 13:33, John Marshall wrote:
>
>> Thank you to whoever went to the trouble of providing updated Subversion
>> mirror seed files on the FTP servers (/pub/FreeBSD/development/subversion/).
>> The particular files to which I refer are:
>>
>> svnmirror-base-r238500.tar.xz
>> svnmirror-doc-r39217.tar.xz
>> svnmirror-ports-r300897.tar.xz
>>
>> Please be aware that the seed mirror repositories for doc and ports have
>> UUID's which differ from their respective master repositories.  The
>> mirror seed for base is fine.
>
> Hmm, indeed. I didn't think of that when creating the mirror the seeds are created from. I will fix that tomorrow and create new seed files.

I have changed the UUID and are rebuilding seed files. As ports is large that will take a couple of hours.

I will send out a notice to stable@ and ports@ later once the seed files are at least on ftp-master.

--
Simon L. B. Nielsen

_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hubs
To unsubscribe, send any mail to "[hidden email]"