[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

RE: suggestion: enhance workspace locking/clean message

From: Jens Christian Restemeier <jens_at_playtonicgames.com>
Date: Sun, 10 Jul 2016 15:14:49 +0100

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
Received on 2016-07-10 16:15:06 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.