Return-Path: X-Original-To: apmail-subversion-dev-archive@minotaur.apache.org Delivered-To: apmail-subversion-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 41BC4996A for ; Thu, 5 Apr 2012 16:37:33 +0000 (UTC) Received: (qmail 83378 invoked by uid 500); 5 Apr 2012 16:37:33 -0000 Delivered-To: apmail-subversion-dev-archive@subversion.apache.org Received: (qmail 83336 invoked by uid 500); 5 Apr 2012 16:37:32 -0000 Mailing-List: contact dev-help@subversion.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@subversion.apache.org Received: (qmail 83329 invoked by uid 99); 5 Apr 2012 16:37:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Apr 2012 16:37:32 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [217.12.10.74] (HELO nm22-vm0.bullet.mail.ukl.yahoo.com) (217.12.10.74) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 05 Apr 2012 16:37:26 +0000 Received: from [217.146.183.181] by nm22.bullet.mail.ukl.yahoo.com with NNFMP; 05 Apr 2012 16:37:03 -0000 Received: from [217.146.183.205] by tm12.bullet.mail.ukl.yahoo.com with NNFMP; 05 Apr 2012 16:37:03 -0000 Received: from [127.0.0.1] by omp1003.bt.mail.ukl.yahoo.com with NNFMP; 05 Apr 2012 16:37:03 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 858053.80419.bm@omp1003.bt.mail.ukl.yahoo.com Received: (qmail 71197 invoked by uid 60001); 5 Apr 2012 16:37:03 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=btopenworld.com; s=s1024; t=1333643823; bh=oNT107wx4aDF7wLLoxa8uOg7F9qn2aRUgsk4OajkqPk=; h=X-YMail-OSG:Received:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=a5vOog+KqLp1E/RWnFZq7ilIe5fd7EoNiPsOYzfSZvza1nFYZ9EE1TKr78dgKfWSdOfOU9XOqHVJC/q6FtyM1uy8aP7+8Fy7xwqwCPW4NFlEbX3+DXIHmV1ckiAecLvBkpzKI72QCPsLphvN/g0W0ffy2+N3x+Wy2AiConMQq0g= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=btopenworld.com; h=X-YMail-OSG:Received:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=zSLpUGMUPFJ7/nQhe9kp8UKz1YnNbz2Ga8L6AaymHQr4eK99RphNK6ccnJFwPzGGFpaK7FYYX/FCpXSvyMqejo5ugBvsj7roLuZAFHLyIV6Cna+u38ChHaiTESyL0Lwk07lCKcfyQlz0+r/czMDUYuf/NEObaJJaqmTNljOPeUM=; X-YMail-OSG: yXY2mQ8VM1k67jQlqxka5iBhTywzaJlbfT6GJoB4IyGtoZQ ud2DK0D2lQzaNDje_c2zyMvvgJHnGQSlFOkgJzV86UBoaltYdoWZBeEcHc4e E0DeDyjnmJtZUKbbMTCgvSfRXLr7jIYiQyknDBfXa5WG9EqJhM8_c_LnvtzG _rYZ9EuPrBNAiQ2I_YnEv5yk4AF.PFrzX02Y8TjcwvYpALGDKbcieqxznyp. 6HAJJBpgL6gI58dwU.kydM1p414AUf3BbbYCMA.zpKX3BUzbGlOQbto53cfF XiAfWcjOqPXJWXX4njkEC27ypMvwHsgyn4tWTNj26ne_6QxTRqCbHucTruNU wouzcXMlEI0Q47HQsaXXGFqdwUwP2540C0JenZKeg_PzcK04x2Oa6j..RkeS 8cCQBaLY1tFYifrJa4rcYmuB_mjI8nMImSzMkhuhnc.FBS1l7m_k5bJNO8WT IRW8vUc1MI1WvyriY1f5uX7iyw74S7Gq.U_imc2Y5Y8OIV7a_xBZ3yfpNZqY JDbd6x0fE6fAT7362fVBCPB35sk6hcSL6OEtCjbk1c9PP Received: from [82.32.207.221] by web87702.mail.ir2.yahoo.com via HTTP; Thu, 05 Apr 2012 17:37:03 BST X-Mailer: YahooMailWebService/0.8.117.340979 References: <1333639575.6592.YahooMailNeo@web87702.mail.ir2.yahoo.com> <4F7DC605.3030604@collab.net> Message-ID: <1333643823.71137.YahooMailNeo@web87702.mail.ir2.yahoo.com> Date: Thu, 5 Apr 2012 17:37:03 +0100 (BST) From: Julian Foad Reply-To: Julian Foad Subject: Re: svnsync and locks -- issue #3457 "Unable to replicate locks in webdav proxy setup" To: "C. Michael Pilato" Cc: SubversionDevelopment In-Reply-To: <4F7DC605.3030604@collab.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Thanks.=A0 I've added the issue # and summary to the subject line now.=0A= =0A- Julian=0A=0A=0A=0A=0AC. Michael Pilato wrote:=0A> Julian Foad wrote:= =0A>> How would an admin arrange for svnsync to synchronize locks=0A>> (r= eserved-checkout locks, that is)?=0A>> =0A>> I was talking to Philip and h= e mentioned that he'd been thinking about=0A>> this.=A0 It seems to us tha= t the only way available currently is for=0A>> post-[un]lock on the master= to rsync the whole 'locks' directory to the=0A>> slave.=A0 (That's for FS= FS; no idea if there's an equivalent for BDB.)=0A>> That doesn't seem sati= sfactory, for several reasons.=A0 One issue is it=0A>> isn't guaranteed to= happen in the right order relative to commits.=0A>> =0A>> In terms of *pr= eventing* a user committing to a locked file without=0A>> holding the lock= , you don't need the locks to be present on the slave, of=0A>> course, bec= ause it's the master not the slave that will process a commit.=0A>> But if= we don't sync locks onto the slave, then users checking out and=0A>> upda= ting from the slave will not see the correct set of locks, which is=0A>> u= nhelpful.=0A>> =0A>> Could we teach svnsync to sync locks?=0A>> =0A>> If = we did have a way to sync locks, there would then be locks on the=0A>> sla= ve, and how would "svnsync sync" then make commits?=A0 I can't think how=0A= >> it could know what lock tokens it should provide with the commit; the= =0A>> master kept no record of them, nor even of the fact that such locks= =0A>> existed on the master at that earlier point in time.=A0 I suppose sv= nsync=0A>> would have to make its commit to the slave in a way that bypass= es all=0A>> lock checking.=A0 Or maybe there are ways we could make it sup= ply the right=0A>> list of lock tokens, but I can't think of a way.=A0 Byp= assing all locks=0A>> should be fine in this scenario.=0A> =0A> See http:/= /subversion.tigris.org/issues/show_bug.cgi?id=3D3457 for earlier=0A> manife= stations of these thoughts and links to possibly to some more=0A> complicat= ions.