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

Re: Locked file - Windows - filesystem number instead of path is shown in error message

From: Daniel Sahlberg <daniel.l.sahlberg_at_gmail.com>
Date: Sun, 3 Jan 2021 09:53:08 +0100

Den sön 3 jan. 2021 kl 06:37 skrev Martin Rupp <martin.rupp_at_nefkom.net>:

> Hi,
>
> If a file is locked I get an error message like:
>
> Lock failed: C:\test\svn\TestSvn\Test-o1.fodt
> Error: Path '/Martin/Test-o1.fodt' is already locked by user 'martin' in
> filesystem
> Error: '75510a91-dada-4f23-b575-03fe34008164'
>
> (TortoiseSVN 1.14.0, Build 28885 - 64 Bit , 2020/05/24 13:32:45)
>
> It is okay that I get an error but I need the path of the working copy
> instead of a hex number which doesn't help me.
> Why I get a such unknown number instead a path?
>
> c:\test\svn\TestSvn>svn lock Test-o1.fodt
> svn: warning: W160035: Path '/Martin/Test-o1.fodt' is already locked by
> user 'martin' in filesystem '75510a91-dada-4f23-b575-03fe34008164'
> svn: E200009: One or more locks could not be obtained
>
> c:\test\svn\TestSvn>svn lock Test-o1.fodt
> svn: warning: W160035: Path '/Martin/Test-o1.fodt' is already locked by
> user 'martin' in filesystem '75510a91-dada-4f23-b575-03fe34008164'
> svn: E200009: One or more locks could not be obtained
>
> c:\test\svn\TestSvn>svn --version
> svn, version 1.14.0 (r1876290)
> compiled May 24 2020, 17:07:49 on x86-microsoft-windows
>
> Copyright (C) 2020 The Apache Software Foundation.
> This software consists of contributions made by many people;
> see the NOTICE file for more information.
> Subversion is open source software, see http://subversion.apache.org/
>
> The following repository access (RA) modules are available:
>
> * ra_svn : Module for accessing a repository using the svn network
> protocol.
> - with Cyrus SASL authentication
> - handles 'svn' scheme
> * ra_local : Module for accessing a repository on local disk.
> - handles 'file' scheme
> * ra_serf : Module for accessing a repository via WebDAV protocol using
> serf.
> - using serf 1.3.9 (compiled with 1.3.9)
> - handles 'http' scheme
> - handles 'https' scheme
>
> The following authentication credential caches are available:
>
> * Wincrypt cache in E:\Users\Martin-User\AppData\Roaming\Subversion
>
> I have also tried it with cygwin:
>
> Martin-User_at_JODA /cygdrive/c/Test/svn/TestSvn
> $ svn lock Test-o1.fodt
> svn: Warnung: W160035: Path '/Martin/Test-o1.fodt' is already locked by
> user 'martin' in filesystem '75510a91-dada-4f23-b575-03fe34008164'
> svn: E200009: One or more locks could not be obtained
>
> What is the "filesystem '75510a91-dada-4f23-b575-03fe34008164'"?
>
> It seems it is the id for the svnserver (svnserve).
>
> If I use svn auth the same id is used for the login area:
>
> Martin-User_at_JODA /cygdrive/c/Test/svn/TestSvn
> $ svn auth
> ------------------------------------------------------------------------
> Art der Zugangsdaten: svn.simple
> Anmeldebereich: <svn://qnap-nas-ts-231p3:3690>
> 75510a91-dada-4f23-b575-03fe34008164
> Passwortspeicher: wincrypt
> Passwort: [nicht angezeigt]
> Benutzername: martin
>
> Credentials cache in '/home/Martin-User/.subversion' contains 1 credential
>
> But how can I see in which path (working copy) on which computer the
> file is locked?
>

There is already a somewhat similar request in JIRA (
https://issues.apache.org/jira/browse/SVN-4857). It doesn't seem like any
work has done there. The idea would be to put the computer name in the lock
message. But as mentioned in the issue, it would be difficult for the
server to work out the computer name and even more difficult to work out
the working copy path.

You can of course manually add this information in the lock message and
then inspect it using svn info [url to file in the repository] (or in
TortoiseSVN: "Check for modifications", "Check repository")

There is a client side Hook Scripts feature in TortoiseSVN. The Pre-Lock
script locks promising from the documentation (it should be executed before
the lock dialog is shown and the script should be able to figure out both
the computer and the path and put it in the log message). However I can't
make it work from a quick test and I don't have time to dig deeper right
now. If you try it out and it doesn't work, please reach out to the
TortoiseSVN mailing lists (https://tortoisesvn.net/community.html).

Kind regards,
Daniel Sahlberg
Received on 2021-01-03 09:53:31 CET

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.