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

Re: Re: Re: Stealing/Breaking Locks

From: Simon Large <simon.tortoisesvn_at_googlemail.com>
Date: Tue, 28 Apr 2009 12:48:37 +0100

2009/4/28 Ashwani Singh <kumar.winfly19_at_gmail.com>:
> Hi simon,
> First of all thanks for your valuable suggestions.
> The scenario is that we are working on the same project which resides on the VisualSVNServer through local copies on different user systems.
> Suppose there are two users A and B.
> A- This user has all the administrative rights.
> B- Another user.
> Now,If user A locks some page named 'abc.aspx' and working on it exclusively.Now suppose B wants to do work on the same page 'abc.aspx'..he can't work/commit  because the page has been locked by the user A,but he can forcefully unlock by cheking through stealing chekbox.I dont want to allow this stealing facility to user B.What will i do to this pre-lock script to block the steallocking facility to user B except the administrator(means user A).
> We hope you understand our problem.
> Please help us to modify the pre-lock batch file for windows for the above mentioned problem.

That is probably beyond the scope of a simple batch file as you need
something very close to what is in the linux template, which sends the
output of svnlook through grep and sed in order to find out who the
lock owner is. You could maybe use java, perl or python instead, or
maybe Windows scripting. But I am not an expert on any of those.


:       ___
:  oo  // \\      "De Chelonian Mobile"
: (_,\/ \_/ \     TortoiseSVN
:   \ \_/_\_/>    The coolest Interface to (Sub)Version Control
:   /_/   \_\     http://tortoisesvn.net
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2009-04-28 13:48:46 CEST

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