From users-return-791-daniel=haxx.se@subversion.apache.org Tue Feb 2 18:57:40 2010 Return-Path: Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by giant.haxx.se (8.14.3/8.14.3/Debian-9) with SMTP id o12Hvdkp026576 for ; Tue, 2 Feb 2010 18:57:40 +0100 Received: (qmail 97047 invoked by uid 500); 2 Feb 2010 17:57:34 -0000 Mailing-List: contact users-help@subversion.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@subversion.apache.org Received: (qmail 97039 invoked by uid 99); 2 Feb 2010 17:57:34 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Feb 2010 17:57:34 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [15.193.32.62] (HELO g6t0185.atlanta.hp.com) (15.193.32.62) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Feb 2010 17:57:24 +0000 Received: from G6W0640.americas.hpqcorp.net (g6w0640.atlanta.hp.com [16.230.34.76]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by g6t0185.atlanta.hp.com (Postfix) with ESMTPS id 7629B24106 for ; Tue, 2 Feb 2010 17:57:02 +0000 (UTC) Received: from G5W0602.americas.hpqcorp.net (16.228.9.185) by G6W0640.americas.hpqcorp.net (16.230.34.76) with Microsoft SMTP Server (TLS) id 8.2.176.0; Tue, 2 Feb 2010 17:56:20 +0000 Received: from GVW1115EXC.americas.hpqcorp.net ([16.228.11.78]) by G5W0602.americas.hpqcorp.net ([16.228.9.185]) with mapi; Tue, 2 Feb 2010 17:56:20 +0000 From: "Bailey, Darragh" To: "users@subversion.apache.org" Date: Tue, 2 Feb 2010 17:56:19 +0000 Subject: RE: Svnsync - switching source and mirror Thread-Topic: Svnsync - switching source and mirror Thread-Index: AcqkLyBWBQtkNM6jT02Dw0L4a9MwLwAAT0yA Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org Some typo's in my mail that I didn't spot the first time=20 > 5) Synchronise the repositories > svnsync synchronize --username svnsync=20 > svn+ssh://svnsync@remote/var/svn/mirror >=20 > 6) Put the local repo into read-only mode temporarily and=20 > repeat step 6 (since otherwise it would read-only for many hours) > Do this by setting at the top of the scripts > /var/svn/master/hooks/{pre-commit,pre-revprop-change} > echo "Repository temporarily read only contact blah if this=20 > is an issue" > exit 1 Start of 6 should have read "6) Put the local repo into read-only mode temporarily and repeat step 5" > 7) Add post-commit and post-rev-changes to forward and future=20 > changes to the master repository to the=20 > /var/svn/master/hooks/post-commit > /usr/local/bin/svnsync synchronize --username svnsync=20 > svn+ssh://svnsync@remote/var/svn/mirror & >=20 > /var/svn/master/hooks/post-rev-change > REV=3D"$2" > /usr/local/bin/svnsync copy-revprops --username svnsync=20 > svn+ssh://svnsync@remote/var/svn/mirror $REV & End of step 7 should have been remove the read-only changes made in step 6 = from the local master. Otherwise, as I'm sure someone will point out, you w= on't be able to commit to the master. -- Regards, Darragh Bailey Systems Software Engineer Hewlett Packard Galway Ltd. Postal Address:=A0=A0=A0 Hewlett Packard Galway Limited, Ballybrit Business= Park, Galway Registered Office: Hewlett Packard Galway Limited, 63-74 Sir John Rogerson'= s Quay Dublin 2 Registered Number: 361933=20