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

Re: Commit deleted locked files - working unexpected

From: Ryan Schmidt <subversion-2009b_at_ryandesign.com>
Date: Fri, 31 Jul 2009 15:13:11 -0500

On Jul 31, 2009, at 09:36, axdmoraes wrote:

> I lock a file then delete it.
> I put a pre-commit script that always return error(I´m using this
> script
> only for testing this situation because the real script is for: if
> a delete
> action is happening in a lock file, it has to return error).
>
> Then I commit and it returns error as expected.
> Then I revert the delete.
> The file returns with a locked status in tortoise. But when I try
> to release
> lock, it returns error(Bad request).
> In command line I use the svnlook lock command and it returns nothing.
>
> It seems that even if pre-commit script returns error, the lock is
> released
> but the file isn´t commited.
> The lock should not be released, should be?

I think if you want to prevent an unlock, you have to write a pre-
unlock script to do that.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2377544

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-07-31 22:14:20 CEST

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.