Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 6A71D200AF7 for ; Tue, 14 Jun 2016 21:47:16 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 690C7160A47; Tue, 14 Jun 2016 19:47:16 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 821E9160A06 for ; Tue, 14 Jun 2016 21:47:15 +0200 (CEST) Received: (qmail 71944 invoked by uid 500); 14 Jun 2016 19:47:14 -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 71934 invoked by uid 99); 14 Jun 2016 19:47:13 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Jun 2016 19:47:13 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 587DE1805A8 for ; Tue, 14 Jun 2016 19:47:13 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.802 X-Spam-Level: X-Spam-Status: No, score=-0.802 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id 6fdmq9pgGfOj for ; Tue, 14 Jun 2016 19:47:11 +0000 (UTC) Received: from mail-qk0-f176.google.com (mail-qk0-f176.google.com [209.85.220.176]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with ESMTPS id 4CC8D5F5A1 for ; Tue, 14 Jun 2016 19:47:10 +0000 (UTC) Received: by mail-qk0-f176.google.com with SMTP id p10so505929qke.3 for ; Tue, 14 Jun 2016 12:47:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=7najoFJY7E7MjLNHaku1fZI68eXpfVC+KPD9pfk/Lxk=; b=wF2mYs/EbdWEg5RtwmvBVFfffOJfL1VrQpAUTpvCJEO3mlfHiFf8rPFzgvxQu6LwXt TVcZOnW7wf49hgQvuPLVz9/11sMhamOdoJfrqlVCchWSrGeIIhWwx/pPtMZkMcM7fKHk NXB/WQfpM5oQvK06Lf84N7jV4giJ3mWTMUMqIBUiYRZetRZ9mIcC3lsJ9itb09crTgxU Srx3eUq0dtoqs/fnBCH5vlwO6V161zZLLRXIM4F6/jGDkD+FsHUMwhnhgZ2hWkBHpMNf nxNOEZWAfjbBlcXa1/TECjPanjz2fM1ReSYCeckGYawvft8hIKX1SDefTuzEqq9nbktM tb9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=7najoFJY7E7MjLNHaku1fZI68eXpfVC+KPD9pfk/Lxk=; b=Zz3MSop/d+32lvoAcq70d5I4gddyJP3oPQZAOv4KfAvS9PjyBHBpF2QjchiWIZTNIi JQdYA9QUdygTzLddppQH3BQeIQUwunqQgf92YUMPcQpRFhCMDxP3mtwnGkwt4QjHEJwB kXPJbVcz4+sKWp6elKG99h8pYVkmyXMQgq7mSi3QioGCkdrb8F/FKngNM3eoFG5/tZ8I vNyl6k/q7oDEqDfAApJuzTtAbE0EV3iUraUYbCETOgXvraRyX+7eTS6gYempoJ0PaCvj jC0Oi71AI0PzHMK5JHuCz35tiGTGGzDRD0X5bJWZmKlXSuiW20dp46RQU5UG4H27v5Xc syrA== X-Gm-Message-State: ALyK8tJwsAWu34RxU27ENwCIKxAWI70xABwGbQ8rTOeYIFC2dgnvBbAqz8LkG78u4AMTInxPAe6araMrObs+fQ== X-Received: by 10.55.163.200 with SMTP id m191mr22591501qke.175.1465933629293; Tue, 14 Jun 2016 12:47:09 -0700 (PDT) MIME-Version: 1.0 Received: by 10.55.210.67 with HTTP; Tue, 14 Jun 2016 12:46:49 -0700 (PDT) In-Reply-To: References: <5b401c90-6eb8-494d-b010-2d36e36ad3af@googlegroups.com> From: Johan Corveleyn Date: Tue, 14 Jun 2016 21:46:49 +0200 Message-ID: Subject: Re: which version control supports file locking and who has it locked To: Doug Robinson Cc: Mark McKeown , Andreas Stieger , "users@subversion.apache.org" Content-Type: text/plain; charset=UTF-8 archived-at: Tue, 14 Jun 2016 19:47:16 -0000 On Mon, Jun 13, 2016 at 10:49 PM, Doug Robinson wrote: > > Johan: > > On Mon, Jun 13, 2016 at 2:30 PM, Johan Corveleyn wrote: >> >> On Mon, Jun 13, 2016 at 5:29 PM, Doug Robinson >> wrote: >> > >> > Johan: >> > >> > The "svn lock" enables all people considering working with a file to >> > be able to see who currently has the file locked. But they cannot see >> > anyone who is working on the file but does not own the lock. >> > >> > Reading the "p4 edit" man page: >> > >> > https://www.perforce.com/perforce/r16.1/manuals/cmdref/p4_edit.html >> > >> > we see that the expected use is "p4 edit; ; p4 submit" and that >> > "p4 edit" updates the Perforce database to mark the file as being edited >> > by that account in that workspace. That means that any other Perforce >> > user can see *all* of the other accounts working on that file (this is *not* >> > the same as a lock) by issuing the "p4 opened -a file" command. >> > >> > The ClearCase Dynamic View situation is pretty much the same as what >> > I have described above for Perforce. >> >> Okay, so IIUC with "p4 edit" multiple users can start editing the file >> (Alice, John and Jim), and they can all indicate concurrently that >> they're editing the file, and other users can see that Alice, John and >> Jim all have the file opened for editing. Interesting, but I fail to >> see how that helps with non-mergeable files, where you want to lock it >> out for one person to work on it at the same time. > > > Or they can check to see who's editing it before checking it out. Ah yes, that's true. >> >> Remember the question from the OP: "in Tortoise SVN, there is no >> method of locking a file until it has been changed . >> or knowing who is actually working on a file. is this feature >> available on any other version control , GIT , CVS ?" > > > There are 2 parts to that question: > 1. no method of locking > 2. no way to see who's actually working on the file > > The former is just wrong: SVN has locking and TortoiseSVN definitely > has that implemented. Agreed. >> >> He seems to be asking for locks, i.e. one developer locks it until he >> has completed his change. > > > I just didn't assume that the OP only was talking about locking. > If they were then the 2nd comment is strange, but, well, ok. Done. Ack. >> Apart from that: AFAICS the remark "But they cannot see anyone who is >> working on the file but does not own the lock" applies to all systems >> under discussion. With Perforce, I'm guessing that I can just as well >> start editing the file with some text editor, outside of p4's >> knowledge, right? That's just the same as starting to edit an >> svn:needs-lock file without taking the svn lock (note that an >> "svn:needs-lock file" is by default read-only on the filesystem in an >> svn working copy, so you have to explicitly make it writeable). > > > I'm not sure about Perforce's implementation. However, just for > comparison: with ClearCase Dynamic Views you can *not* edit the file > without a checkout. The Dynamic View implementation is via an actual > OS file system so you can't beat it. And everyone can see that checkout. Okay, thanks for explaining. -- Johan