subversion-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Shahaf <...@daniel.shahaf.name>
Subject Re: pre-commit require lock exception
Date Tue, 04 Mar 2014 22:20:33 GMT
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.

Mime
View raw message