From owner-ctm-users@FreeBSD.ORG Thu Aug 11 04:31:13 2011 Return-Path: Delivered-To: ctm-users@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 237D2106566C for ; Thu, 11 Aug 2011 04:31:13 +0000 (UTC) (envelope-from stephen@missouri.edu) Received: from wilberforce.math.missouri.edu (wilberforce.math.missouri.edu [128.206.184.213]) by mx1.freebsd.org (Postfix) with ESMTP id E34648FC0A for ; Thu, 11 Aug 2011 04:31:12 +0000 (UTC) Received: from [127.0.0.1] (wilberforce.math.missouri.edu [128.206.184.213]) by wilberforce.math.missouri.edu (8.14.4/8.14.4) with ESMTP id p7B4VBOp004156 for ; Wed, 10 Aug 2011 23:31:11 -0500 (CDT) (envelope-from stephen@missouri.edu) Message-ID: <4E435B10.9040907@missouri.edu> Date: Wed, 10 Aug 2011 23:31:12 -0500 From: Stephen Montgomery-Smith User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.18) Gecko/20110617 Thunderbird/3.1.11 MIME-Version: 1.0 To: ctm-users@freebsd.org References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: SVN repo X-BeenThere: ctm-users@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CTM User discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Aug 2011 04:31:13 -0000 On 08/09/2011 07:49 AM, Chris Rees wrote: > Hi Stephen, > > Have you any plans to start distributing the subversion repo? I keep > hearing little hints about the Other Two Trees being moved too... If > you need any more hands on it I'll be happy to help. > > Chris OK, I think I have figured out how to do this, at least in principle. svn has all its data organized into revisions. These are numbered, starting at 1, and going on up to something like 224771. Every time someone commits to the svn repository, the revision number is incremented. There is the command: svnadmin dump whereever-the-repository-is \ -r 224703:224771 --incremental --deltas > afile so that if someone else has a repository going up to revision 224702, then they can update to revision 224771 with the command: svnadmin load whereever-the-other-one-is < afile. Furthermore, afile will just contain diffs needed to go from 224702 to 224771, and so it is not going to be larger than it needs to be. Obviously a wrapper can be written around these commands so that afile is sent out be email, and ctm and mkCTM can be written so that svn updates can be sent out by CTM. I'm still experimenting with this. And I don't think I will work seriously on this until the FreeBSD project gets close to abandoning cvs altogether. But I think that with some work, this can be made to work. Stephen