From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.devel Subject: Re: git mirror? Date: Wed, 30 Dec 2009 14:10:57 +0100 Message-ID: References: <877hs6bavz.fsf@catnip.gol.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1262178927 2251 80.91.229.12 (30 Dec 2009 13:15:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 30 Dec 2009 13:15:27 +0000 (UTC) Cc: emacs-devel@gnu.org To: Miles Bader Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 30 14:15:19 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NPyOV-000384-5R for ged-emacs-devel@m.gmane.org; Wed, 30 Dec 2009 14:15:19 +0100 Original-Received: from localhost ([127.0.0.1]:34719 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NPyOS-00070w-2U for ged-emacs-devel@m.gmane.org; Wed, 30 Dec 2009 08:15:16 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NPyKd-0005I7-Ob for emacs-devel@gnu.org; Wed, 30 Dec 2009 08:11:19 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NPyKZ-0005F7-AZ for emacs-devel@gnu.org; Wed, 30 Dec 2009 08:11:19 -0500 Original-Received: from [199.232.76.173] (port=58386 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NPyKY-0005F2-W0 for emacs-devel@gnu.org; Wed, 30 Dec 2009 08:11:15 -0500 Original-Received: from mail-out.m-online.net ([212.18.0.10]:36089) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NPyKW-0004Gk-1B; Wed, 30 Dec 2009 08:11:12 -0500 Original-Received: from mail01.m-online.net (mail.m-online.net [192.168.3.149]) by mail-out.m-online.net (Postfix) with ESMTP id 6E8641C000A4; Wed, 30 Dec 2009 14:10:59 +0100 (CET) Original-Received: from localhost (dynscan1.mnet-online.de [192.168.8.164]) by mail.m-online.net (Postfix) with ESMTP id 4E8EC90207; Wed, 30 Dec 2009 14:10:59 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Original-Received: from mail.mnet-online.de ([192.168.3.149]) by localhost (dynscan1.mnet-online.de [192.168.8.164]) (amavisd-new, port 10024) with ESMTP id eijUsf-mWgG1; Wed, 30 Dec 2009 14:10:58 +0100 (CET) Original-Received: from igel.home (DSL01.83.171.146.86.ip-pool.NEFkom.net [83.171.146.86]) by mail.mnet-online.de (Postfix) with ESMTP; Wed, 30 Dec 2009 14:10:58 +0100 (CET) Original-Received: by igel.home (Postfix, from userid 501) id F41CFCA28C; Wed, 30 Dec 2009 14:10:57 +0100 (CET) X-Yow: Hold the MAYO & pass the COSMIC AWARENESS... In-Reply-To: <877hs6bavz.fsf@catnip.gol.com> (Miles Bader's message of "Tue, 29 Dec 2009 14:35:28 +0900") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.90 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:119039 Archived-At: Anyone who wants to set up a git mirror can use something like this, suitably adapted: test last-run -nt last-run-ready || touch last-run rsync -av --del bzr.sv.gnu.org:/srv/bzr/emacs/ emacs.bzr/ cd emacs.bzr for b in *; do test $b/.bzr/branch/last-revision -ot ../last-run && continue echo $b bzr fast-export --marks=../bzr-marks $(test $b != trunk && echo -b $b) $b | (cd ../emacs.git; git fast-import --export-marks=../git-marks --import-marks=../git-marks) done cd ../emacs.git git push --mirror ssh://repo.or.cz/srv/git/emacs.git touch ../last-run-ready Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."