Nevermind.. I guess lock enforcement is only active if a lock exists.
I suppose I would need to add a pre-commit hook to enforce the existence
of a lock first.
Eric
> -----Original Message-----
> From: Miller, Eric
> Sent: Monday, September 24, 2007 2:39 PM
> To: users@subversion.tigris.org
> Subject: Commiting deletion not checking svn:needs-lock?
>
> Could someone verify this bug for me? I set needs-lock on a file but
> commit seems to ignore it when deletions are concerned:
>
> [10]% mkdir test_lock
>
> [11]% touch test_lock/lockme
>
> [12]% svn add test_lock/
> A test_lock
> A test_lock/lockme
>
> [13]% svn propset svn:needs-lock '*' test_lock/lockme
> property 'svn:needs-lock' set on 'test_lock/lockme'
>
> [14]% svn ci -m '' test_lock
> Adding test_lock
> Adding test_lock/lockme
> Transmitting file data .
> Committed revision 8.
>
> [15]% svn st -u test_lock
> Status against revision: 8
>
> [16]% svn rm test_lock
> D test_lock/lockme
> D test_lock
>
> [17]% svn ci -m 'this should fail - no lock on lockme' test_lock
> Deleting test_lock
>
> Committed revision 9.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Sep 24 23:17:08 2007