From users-return-24913-apmail-subversion-users-archive=subversion.apache.org@subversion.apache.org Sun Jul 10 14:15:05 2016 Return-Path: X-Original-To: apmail-subversion-users-archive@minotaur.apache.org Delivered-To: apmail-subversion-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 681F518463 for ; Sun, 10 Jul 2016 14:15:05 +0000 (UTC) Received: (qmail 32747 invoked by uid 500); 10 Jul 2016 14:15:04 -0000 Delivered-To: apmail-subversion-users-archive@subversion.apache.org Received: (qmail 32702 invoked by uid 500); 10 Jul 2016 14:15:04 -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 32686 invoked by uid 99); 10 Jul 2016 14:15:04 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 10 Jul 2016 14:15:04 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id BE7E8C0144; Sun, 10 Jul 2016 14:15:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.999 X-Spam-Level: ** X-Spam-Status: No, score=2.999 tagged_above=-999 required=6.31 tests=[HTML_MESSAGE=2, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id fZhBJUSkboGx; Sun, 10 Jul 2016 14:15:02 +0000 (UTC) Received: from mout.kundenserver.de (mout.kundenserver.de [217.72.192.75]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id D99475F2C4; Sun, 10 Jul 2016 14:15:01 +0000 (UTC) Received: from jenspc ([91.142.38.194]) by mrelayeu.kundenserver.de (mreue102) with ESMTPSA (Nemesis) id 0LlFeI-1ankIl456U-00b5VS; Sun, 10 Jul 2016 16:14:54 +0200 From: "Jens Christian Restemeier" To: Cc: References: In-Reply-To: Subject: RE: suggestion: enhance workspace locking/clean message Date: Sun, 10 Jul 2016 15:14:49 +0100 Message-ID: <003701d1dab5$6c4cc000$44e64000$@playtonicgames.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0038_01D1DABD.CE119D30" X-Mailer: Microsoft Outlook 15.0 Thread-Index: AQLNlpg42WUDBRlDLESnALLLSXs7/J4aO3pA Content-Language: en-gb X-Provags-ID: V03:K0:VnbCsxSsWSgCH8xW2Y12NyAIh+Wcixu+IGeWqbnOdG+8gfIkdUS NsVEjR0+dBNr+5crZN1qlguv03I7MzTgB14WWZzZLn5zYgdOo6XQTGFbouQQXQKhTm5ijeo LKr/VfyNTzKqkKFtJBl/O4XgpMklXVeT205v+BZCMeEoHZ56j6HnmxUlua1bc7SAk6LmTN0 4pKgVy6xbyt27hZFx+ZSA== X-UI-Out-Filterresults: notjunk:1;V01:K0:Qy8cYPh6Vh4=:0rrn5Xz4awCw7PEXSowdxl I4ozUV+BVmB0+BkbhxCy5z++I3DzKQN3P6yd5lVpl1+htd6GwglPRsFeqi3XIU0hkHY13ZdBK hYcGcuoB5evhyxDdKIaG/XZkBo4gRC0JksRih68s4XZSfn8H8J6cp9pNVndV6M3gEWiLioT8y XClIh7y8uM5kfvozyAkPVLUQG1JZVndiM5qvKCaNaWsKWuABM3UFX3L13ouBLyMKZiLjJHWlE 1klcwGo9YzS/gUTCCOCOgeELR6PievRobty2QQsgRcqqR/gXBak417eeT2gQkKUahcxQksxzJ nUaPCVSAJdULsFvsonWsbZu5essfy3AIv0bnJHYvCHYfdcQrMomWvQHhGlX5A0xtVIQqtFE7W qnPrHGgq96CvfC9dZPIwNoUMO8WwiACft7sl8dflyrjnsjBEnwC1f82AxcZ2VBs3UV9pDn5YP EMi5IpPd9vmHhl50CdJtUZVYrwZEArTNGy69WsNDLOcrjN1IJHlE/N1C/i4SrAxvIBwns+g/W zr8MuoU0ZUgWOpqP1l60R2TNxb/vyWlfhaJR9Tljnu/zDXz33FdPfwaUyYP2DPpvT1WLKw3fj GTp62aOPZFv0AYvybn/nMfajeO6PTv6sgaNkPVJnhatGbY3TBk0F2iA+COJsXBhZT+pqJxLwU DBlrbNoFvYAKICq/DJup6k31UyT3Pe5gaZqf8qQJighcfCNiAZa2JpDrXqCAySuvOjNkLAH8f Htp80vZ+HP/jlp7T This is a multipart message in MIME format. ------=_NextPart_000_0038_01D1DABD.CE119D30 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi Brane, Sorry for the late response. Which version of Subversion are you using? D:\Subversion\XXXX>svn --version svn, version 1.9.2 (r1703836) compiled Sep 22 2015, 20:12:15 on x86-microsoft-windows In general it is safe to run multiple Subversion commands simultaneously on the same working copy; access to the working copy database is transactional and protected by the global database lock. So, I just tried this in case it was changed. I opened two console windows and ran "svn up" in both. The second one reports: D:\Subversion\XXXX>svn up svn: E155004: Run 'svn cleanup' to remove locks (type 'svn help cleanup' for details) svn: E155004: Working copy 'D:\Subversion\XXXX' locked. svn: E155004: 'D:\Subversion\XXXX' is already locked. Of course that is clear to me as an engineer, but some technical people managed to break their repository that way. Basically my suggestion is that SVN tries to detect if a workspace is locked because another process is still working on it, or if it is locked because a process was terminated before it correctly unlocked the repository. Though I guess the tricky bit will be to handle this cross-platform. Cheers, Jens ------=_NextPart_000_0038_01D1DABD.CE119D30 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi = Brane,

Sorry for the late = response…

 

Which version = of Subversion are you using?

 

D:\Subversion\XXXX>svn = --version

svn, version 1.9.2 = (r1703836)

   = compiled = Sep 22 2015, 20:12:15 on x86-microsoft-windows

 

In general it = is safe to run multiple Subversion commands = simultaneously

on the same = working copy; access to the working copy database = is

transactional = and protected by the global database lock.

 

So, I just tried this in = case it was changed. I opened two console windows and ran “svn = up” in both.

 

The second one = reports:

D:\Subversion\XXXX>svn up

svn: E155004: Run 'svn = cleanup' to remove locks (type 'svn help cleanup' for = details)

svn: E155004: Working copy 'D:\Subversion\XXXX' = locked.

svn: E155004: 'D:\Subversion\XXXX' is already = locked.

 

Of course that is clear = to me as an engineer, but some technical people managed to break their = repository that way…

 

Basically my suggestion = is that SVN tries to detect if a workspace is locked because another = process is still working on it, or if it is locked because a process was = terminated before it correctly unlocked the repository. Though I guess = the tricky bit will be to handle this = cross-platform…

 

Cheers,

Jens

------=_NextPart_000_0038_01D1DABD.CE119D30--