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

Re: pre-commit require lock exception

From: Daniel Shahaf <d.s_at_daniel.shahaf.name>
Date: Tue, 4 Mar 2014 22:20:33 +0000

Bill McCormick wrote on Sat, Mar 01, 2014 at 13:48:19 -0600:
> I have a PRE_COMMIT hook that checks the file's extension, and if it
> matches it then requires a lock.
>
> How can the pre-commit ignore this check when the file does not
> already exist on the server - for example when a client is doing an
> initial check-in?

Use 'svnlook changed' and look for 'A' in the first column.
Received on 2014-03-04 23:21:29 CET

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.