RE: Re: Re: Stealing/Breaking Locks
From: <webpost_at_tigris.org>
Date: Thu, 30 Apr 2009 21:33:30 -0700 (PDT)
Thanks Bob,
I hope you are getting my point.
@ECHO OFF
:: If a lock exists and is owned by a different person, don't allow it
::>> What the below line is doing..plz tell me.
FOR /F "delims=: tokens=1*" %%a IN ('svnlook lock "%repository%" "%rev_path%"') DO if %%a==Owner (set LOCK_OWNER=%%b)
:: If we get no result from svnlook, there's no lock, allow the lock to
:: If the person locking matches the lock's owner, allow the lock to
::>>Is the below userName variable contains something when user fires the command?
if "%LOCK_OWNER%" = "userName" (
::>>What the below lines are doing???
:: Otherwise, we've got an owner mismatch, so return failure:
The above scipt partly solves our problem.That this script is blocking each and every user from stealing the lock
I have included my queries in the script.I am very grateful to you if you explain the above script line by line because i am not able to understand.
Thanks In Advance.
------------------------------------------------------
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
|
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.