how to prevent stealing locks in subversion

hi all,
I'm using subversion  on a linux box with tortoisesvn on windows xp machines
I've a problem that users can steal others locks and my manager is refusing that and want a message to be displayed if the file is locked by another guy that say that file is locked by x for example

I googled on that and found that link:
http://www.tek-tips.com/viewthread.cfm?qid=1218904&page=2

and it refered to those links
http://svn.collab.net/repos/svn/trunk/tools/hook-scripts/
http://svn.collab.net/repos/svn/trunk/contrib/hook-scripts/

I don't know which hook script to use but I susbect in those
pre-commit-check.py
pre-lock-require-needs-lock.py
but  I don't know if I'm right or wrong and if I'm right  how to make those script work
thanks in advance
best regards
HG
shang3000Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

slyongCommented:
I didn't test out the script but from reading you need the pre_lock_require_needs_lock.py.  Refer to http://subversion.tigris.org/tools_contrib.html#pre_lock_require_needs_lock_py, the svn:needs-lock reference is http://www.linuxtopia.org/online_books/programming_tool_guides/version_control_with_subversion/svn.advanced.props_10.html
0
shang3000Author Commented:
hi slyong
thanks for your reply

please explain to me the following:
>>>http://subversion.tigris.org/tools_contrib.html#pre_lock_require_needs_lock_py,
- I downloaded the hook script but I dont know how to  make it work
>>>http://www.linuxtopia.org/online_books/programming_tool_guides/version_control_with_subversion/svn.advanced.props_10.html
- the url does not have any detailed steps about svn:needs-lock nor the link in it

would you please excuse my ignorance and describe to me what to do or refer me to a link that say so
thanks in advance
best regards
HG
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.