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

Re: AW: Cleanup failed, please execute the 'Cleanup' command.

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: Wed, 17 Feb 2016 20:11:13 +0100

On 17.02.2016 17:37, Rupp, Martin wrote:
> Hello!
>
> I had this issue three times today.
>
> “svn cleanup” solved the problems but not the cleanup of Tortoise SVN.
>
> One time I have activated the option “Break locks” in the “Cleanup”
> dialog of Tortoise SVN.
>
> After that I was able to continue my work.

Yes, this option should usually be enabled when the working copy
requires a cleanup.

> Unfortunately the option “Break locks” is not described in the help. I
> don’t know what this option does.
>
> The cleanup of svn removes all write locks.
>
> Maybe that is the reason why svn cleanup works and Tortoise SVN’s
> cleanup doesn’t.
>
> The help of svn cleanup warns:
>
> WARNING: There is no mechanism that will protect write locks still
>
> being used by other Subversion clients. Running this command
>
> while another client is using the working copy can corrupt
>
> the working copy beyond repair!
>
> I use locks in all my working copies and I let subversion add the
> property svn:needs-lock to all new files.

Cleanup removes write locks. Those are not the same locks as those set
with svn:needs-lock!
write locks are used to prevent multiple svn clients from writing at the
same time to the working copy database. Like mutexes/semaphores in
multi-threaded apps.

So you don't have to worry about your svn:needs-lock locks. And if your
working copy is not shared with other users and you don't have another
svn client running e.g. an update or some other command on that same
working copy, you *should* check the box "remove locks" when doing a
cleanup.

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest interface to (Sub)version control
    /_/   \_\     http://tortoisesvn.net
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=3161222
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2016-02-17 20:11:09 CET

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

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