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

RE: Commiting deletion not checking svn:needs-lock?

From: Miller, Eric <Eric.Miller_at_amd.com>
Date: 2007-09-24 23:15:36 CEST

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

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.