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

Re: Pre-Lock.bat

From: Simon Large <simon.tortoisesvn_at_gmail.com>
Date: Fri, 8 Apr 2011 08:47:06 +0100

Hi Waseem,

On 8 April 2011 07:47, Waseem Bokhari <waseem.bokhari_at_netsoltech.com> wrote:
>
> Sorry ; I think am failed to make you guys understand my Q.

And I think I failed to make you understand the mailing list. As our
mailing list guidelines say, please don't send HTML mail and please
don't send pictures when a few words will do better.

> Purpose: In My organization ; we want users only can Unlock any file or folder
> who Lock them. No one can steal lock. I have write down a script.
> Attached script applied and working pretty much. Only users who lock the
> Files can break the lock. No other one can do so.
>
> BUT, This FAILED in one SCENARIO:
>
> User A > Lock the file
> User B> Cannot unlock from Repo Browser
> Even Unable to LOCK from Checkout Folder as TSVN prompt an error.
>
> BUT Scenario FAILED(My Attached Script failed) when User B used “SVN Get Lock” and Check the Steal lock Option from the below screen and HE GET SUCCEEDED. AND he LOCK get Stolen:
>
> MY Question: Why It happened? Is there any way that No one can steal the Lock except Owner of the Lock.

OK, now you are making sense. But the script you attached is a
pre-lock hook. Don't you need the pre-unlock hook to prevent a lock
from being stolen? The sample script in the repository hooks directory
shows exactly that case.

Simon

--
:       ___
:  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=2718018
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2011-04-08 09:47:13 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.