From owner-freebsd-hackers@FreeBSD.ORG Fri Feb 1 02:12:03 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9C9AE16A41B for ; Fri, 1 Feb 2008 02:12:03 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from mx-out.forthnet.gr (mx-out.forthnet.gr [193.92.150.104]) by mx1.freebsd.org (Postfix) with ESMTP id 1A72F13C46A for ; Fri, 1 Feb 2008 02:12:02 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from mx-av-02.forthnet.gr (mx-av.forthnet.gr [193.92.150.27]) by mx-out-02.forthnet.gr (8.14.0/8.14.0) with ESMTP id m112C1ml021810 for ; Fri, 1 Feb 2008 04:12:01 +0200 Received: from MX-IN-03.forthnet.gr (mx-in-05.forthnet.gr [193.92.150.32]) by mx-av-02.forthnet.gr (8.14.1/8.14.1) with ESMTP id m112C1Y1020598 for ; Fri, 1 Feb 2008 04:12:01 +0200 Received: from kobe.laptop (ppp47-170.adsl.forthnet.gr [62.1.64.170]) by MX-IN-03.forthnet.gr (8.14.2/8.14.2) with ESMTP id m112BxC7007430 for ; Fri, 1 Feb 2008 04:12:00 +0200 Authentication-Results: MX-IN-03.forthnet.gr smtp.mail=keramida@ceid.upatras.gr; spf=neutral Authentication-Results: MX-IN-03.forthnet.gr header.from=keramida@ceid.upatras.gr; sender-id=neutral Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.14.2/8.14.2) with ESMTP id m112BxcH005714 for ; Fri, 1 Feb 2008 04:11:59 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost) by kobe.laptop (8.14.2/8.14.2/Submit) id m112BwxR005713 for freebsd-hackers@freebsd.org; Fri, 1 Feb 2008 04:11:58 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Date: Fri, 1 Feb 2008 04:11:58 +0200 From: Giorgos Keramidas To: freebsd-hackers@freebsd.org Message-ID: <20080201021158.GA5671@kobe.laptop> References: <78cb3d3f0801302245v2183c613t6ecdd9acebbe9ef7@mail.gmail.com> <20080131203705.GB1674@ted.stsp.name> <20080201000047.GA2452@kobe.laptop> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080201000047.GA2452@kobe.laptop> X-Mailman-Approved-At: Fri, 01 Feb 2008 05:32:01 +0000 Subject: Re: [OT] Q: what would you choose for a VCS today X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Feb 2008 02:12:03 -0000 On 2008-02-01 02:00, Giorgos Keramidas wrote: > You can keep 'importing' snapshots of the src tree from any arbitrary > CVS branch, if you are willing to wait until CVS checks out the first > copy of the snapshot. > > This is how we 'resync' with the official doc/ tree changes in the Greek > translation team: > > (a) We keep a Mercurial workspace which is read-only to everyone > else, except the importer. > > (b) The importer checks outs doc/ snapshots and commits them as > 'vendor code drops' in http://hg.hellug.gr/freebsd/doc/ > > (c) I pull changes from the 'import tree' into my own personal > workspace, and merge them with the latest translation effort text. > > (d) Then the merged tree is pushed to a second 'workspace', 'branch' > or whatever you prefer calling it, at http://hg.hellug.gr/freebsd/doc-el/ > > The whole process of importing clean snapshots is automated in a shell > script, which I manually kick off at this point: An much improved snapshot import script is now finished (for some odd definition of `improved' I guess), even thought it is still a bit ugly for my taste. http://people.freebsd.org/~keramida/scripts/bsd-doc-import.ksh.txt I'd probably prefer Perl for some of the stuff done in ksh(1) there, but no time for that tonight, and it seems to work as a 'proof of concept' of importing partial checkouts from CVS to Hg without having to go through all the hoops of converting the *full* history. The cron job entry which runs this is: # Try to import a snapshot of the BSD doc/ tree once an hour. @hourly $HOME/bsd-doc-import.sh $HOME/hg/doc/bsd-import This is getting pretty off-topic for freebsd-hackers though, so it's probably time for me to shuttup and go do something useful :)