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?
 
shang3000Connect With a Mentor Author 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
 
slyongConnect With a Mentor Commented:
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
All Courses

From novice to tech pro — start learning today.