pre-commit require lock exception

2014-03-01 Thread Bill McCormick
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?


Thanks!

---
This email is free from viruses and malware because avast! Antivirus protection 
is active.
http://www.avast.com




Re: SVN 1.8.5 svnlook and check_mime_type.pl

2014-03-01 Thread Ben Reser
On 2/27/14, 12:09 PM, Hartleroad, James [IT] wrote:
> The check_mime_type.pl isn’t working with SVN1.8 on a unix system.
> 
>  
> 
> It seems the format of the output of the svnlook proplist command changed so
> the mime-type is now on a separate line.
> 
> SVN1.7.4
> 
>   svn:executable :
> 
>   svn:mime-type : text/x-ksh
> 
>   svn:eol-style : native
> 
>  
> 
> SVN1.8.5
> 
>   svn:executable
> 
>  
> 
>   svn:mime-type
> 
> text/x-ksh
> 
>   svn:eol-style
> 
> native
> 
>  
> 
> I couldn’t find an issue open for the check_mime_type.pl script, so I thought
> I’d check here to see if anyone already had a solution for this.

It's in contrib so it's not something we would open an issue on.

There is a patch being considered on the dev@ list:
https://mail-archives.apache.org/mod_mbox/subversion-dev/201402.mbox/%3C1556940.9RUyJtFJ1Z%40hurry.speechfxinc.com%3E

My comments on the patch (doesn't show up from link on that because it crosses
the month boundary):
https://mail-archives.apache.org/mod_mbox/subversion-dev/201403.mbox/%3C53114EF9.703%40reser.org%3E