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

Break lock with cleanup through command line

From: Ragnar Hägg <ragnar.hagg_at_gmail.com>
Date: Mon, 03 Oct 2016 15:20:03 +0000

I want to create a bat script that uses TortoiseSVN to update a svn repo.
It should be able to handle the repo being locked from if something went
wrong the last update.

What I tried was this (running 1.9.4):

START /WAIT TortoiseProc.exe /command:cleanup /path:"c:\svn\repoName"
/cleanup /noui /nodlg
START TortoiseProc.exe /command:update /path:"c:\svn\repoName" /closeonend:2

But the cleanup command doesn't seem to handle breaking locks. When I run
the cleanup command without /noui I get the cleanup options, where "Break
locks" is an option, which isn't the case for 1.8.11. In the documentation (
https://tortoisesvn.net/docs/nightly/TortoiseSVN_en/tsvn-automation.html)
it says that the :cleanup command "Cleans up interrupted or aborted
operations and unlocks the working copy...".

Is it possible that the "Break locks" functionality was removed as a
default behavior for cleanup when the option was introduced in later
versions, but no command line option to do it was added? Or is there a way
of doing this?

Best regards,
Ragnar Hägg

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=3188155

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2016-10-03 17:59:59 CEST

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.