Return-Path: X-Original-To: apmail-incubator-ooo-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-ooo-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 988BE6088 for ; Thu, 30 Jun 2011 14:41:06 +0000 (UTC) Received: (qmail 92492 invoked by uid 500); 30 Jun 2011 14:41:06 -0000 Delivered-To: apmail-incubator-ooo-dev-archive@incubator.apache.org Received: (qmail 92458 invoked by uid 500); 30 Jun 2011 14:41:06 -0000 Mailing-List: contact ooo-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ooo-dev@incubator.apache.org Delivered-To: mailing list ooo-dev@incubator.apache.org Received: (qmail 92450 invoked by uid 99); 30 Jun 2011 14:41:05 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Jun 2011 14:41:05 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of rabastus@gmail.com designates 209.85.214.175 as permitted sender) Received: from [209.85.214.175] (HELO mail-iw0-f175.google.com) (209.85.214.175) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Jun 2011 14:40:58 +0000 Received: by iwn4 with SMTP id 4so2166130iwn.6 for ; Thu, 30 Jun 2011 07:40:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; bh=SlH6tMqpblYCx/W9NumErmQFrt45u5VN5SYCDRN0tzg=; b=gqkx9ggMHipoIJ/tFEp5UZwjAd6M0lhrfEIV9jfCnaeczJ5hWynklSmOYBH1dIiokr SLoFFgjbZlQn42z/EjCYYMvZNwFGsoF7Jze+Emc6/J/8ggtTet/jn9YKb65hlxhhNpI+ k/VCiuLUIZKdHxVlTgNsjceM46KBohWoZJZJ0= MIME-Version: 1.0 Received: by 10.42.144.68 with SMTP id a4mr1941320icv.427.1309444835966; Thu, 30 Jun 2011 07:40:35 -0700 (PDT) Sender: rabastus@gmail.com Received: by 10.42.213.71 with HTTP; Thu, 30 Jun 2011 07:40:35 -0700 (PDT) Date: Thu, 30 Jun 2011 10:40:35 -0400 X-Google-Sender-Auth: oqsCu8LzlvilA9CfE-HfTym5i48 Message-ID: Subject: svn:needs-lock for ODF documents? From: Rob Weir To: ooo-dev@incubator.apache.org Content-Type: text/plain; charset=UTF-8 X-Virus-Checked: Checked by ClamAV on apache.org Noticed this comment on the CommitterStatus.ods file: "Wondering: I think I may be about to experience the disadvantage of binary documents in SVN. If I have a collision, finding a way to merge has to be all off-line and I could collide for a long time while working on this document off-line. Heh." There is a technique we could use in SVN to make binary collisions less likely. If we set the svn:needs-lock property for the file, then when it is checked in, the working copy will be read-only at the OS level. If the user then locks the file in SVN, it becomes writable. And when committed the lock is released and the working copy is read-only again. In general locking is a bad thing, but there are trade-off's when dealing with binary files that cannot be merged or even effectively diff'ed if simultaneously edited. -Rob