From owner-freebsd-current@FreeBSD.ORG Mon Apr 13 01:34:38 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3AE941065675 for ; Mon, 13 Apr 2009 01:34:38 +0000 (UTC) (envelope-from ben@wanderview.com) Received: from mail.wanderview.com (mail.wanderview.com [66.92.166.102]) by mx1.freebsd.org (Postfix) with ESMTP id B9B118FC14 for ; Mon, 13 Apr 2009 01:34:37 +0000 (UTC) (envelope-from ben@wanderview.com) Received: from harkness.in.wanderview.com (harkness.in.wanderview.com [10.76.10.150]) (authenticated bits=0) by mail.wanderview.com (8.14.3/8.14.3) with ESMTP id n3D1YZWW024427 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Mon, 13 Apr 2009 01:34:35 GMT (envelope-from ben@wanderview.com) Message-Id: From: Ben Kelly To: Chuck Robey In-Reply-To: <49D8EC20.70700@telenix.org> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v930.3) Date: Sun, 12 Apr 2009 21:34:35 -0400 References: <49D8EC20.70700@telenix.org> X-Mailer: Apple Mail (2.930.3) X-Spam-Score: -1.44 () ALL_TRUSTED X-Scanned-By: MIMEDefang 2.64 on 10.76.20.1 Cc: freebsd-current@freebsd.org Subject: Re: comparing svn and cvs somewhat X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Apr 2009 01:34:38 -0000 On Apr 5, 2009, at 1:36 PM, Chuck Robey wrote: > I have gotten a local copy of the svn repo going on my home here, by > using > svnsync, which seems (by what I've read and been told) to be the > right method. > I'm wondering about a feature that is there for cvs, in cvsup, but > which seems > to be missing in svnsync for svn. > > What I'm after is a much better way to maintain a local repo than > what I'm > seeing now in maintaining my svn repo, with svnsync. The main > feature that I > think I'm missing is the ability to be able to compare files on a > central server > (something serving all FreeBSDers) to files on everybody's personal > repo, and > to automatically update them if there isn't a perfect comparison. > I'm not > talking about the varying ways that your repo might get damaged, but > I think > that svnsync only knows that you have a particular revision number, > not that the > file is correct. If your repo gets damage, I think that nothing > exists to > automatically fix it. > > So, if this feature IS something that's already available in svn, > I'd like to > here a summary of what tool to use the how to do it, so I can verify > myself that > what I'm thinking about already exists. That'd free me to begin > writing > software, to see if I could implement such a feature. I'm not truly > certain of > this, but it seems to me that implementing such a feature, using > something like > Python, would be very easy to do. Could end up with a svn version > of cvs's > cvsup. Maybe, call it svnup? I'm terrible at names, if you think > that name > makes no sense, please, tell me so. I looked into this a bit previously. I wanted something similar to cvsup to help me track remote repositories as vendor branches in my local repository. My initial research showed some feature requests for "svn export -r REV" which would have done most of this for me. Unfortunately the last time I looked it hadn't been implemented. So based on that I wrote a very-alpha proof of concept script you can find here: http://www.wanderview.com/svn/public/svnsnap/0.1/ Please use at your own risk because its only been tested very lightly. I've pretty much abandoned this script because I don't think a shell script wrapper can handle all the corner cases with the current support in the svn tools. In particular I know this script does not handle updates to file and directory permissions. I started working on a C utility that interfaced directly with the svn API's, but I got distracted by real life before getting it in working order. Anyway, I'm interested in a tool like this, but I doubt I will have a lot of time in the short term to work on it. Hope that helps. - Ben