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

svn lock gives different output with --force?

From: Aniruddha Apte <aniapte_at_gmail.com>
Date: 2005-06-30 10:40:47 CEST

Hi,

I have a pre-lock hook that disallows locking if the path is already
locked and the new lock requester is different from the original
locker. In such a case, the script will print to stderr.

I am getting a difference in the output of svn lock with and without
--force as shown below.

svn lock foo.h
svn: Lock request failed: 423 Locked (http://192.168.10.25)

svn lock --force foo.h
svn: 'pre-lock' hook failed with error output:
Error: /USERS/aniruddha/src/foo.h already locked by anil.

why the difference? doesn't the pre-lock hook get executed in case 1?

many thanks
-anir

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Jun 30 11:02:14 2005

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