Hello, As Ben pointed out, the current parser in the script for svnlook <= 1.7.x is broken and unfixable for multiline properties. The closest we can get to DTRT in this case is to have svnlook output XML. Hopefully no one still cares about svnlook <= 1.3 (?) that cannot output XML.
Regards, Leo On Mar 2, 2014, at 8:11 AM, "Daniel Shahaf" <d...@daniel.shahaf.name> wrote: > Ben Reser wrote on Fri, Feb 28, 2014 at 19:07:37 -0800: >> On 2/25/14, 4:21 PM, Leo Davis wrote: >>> I recently discovered that the old 'check-mime-type.pl' contrib script is I >>> had installed on my server was broken when using subversion 1.8.5. I >>> looked >>> for an updated script in the 1.8.5 branch and in trunk and discovered the >>> script was also broken in those places as well. After some digging, I >>> found >>> out when this change happened and patched the script. I suspect (but don't >>> know for sure) that this only affects subversion 1.8.x. >>> >>> This patch is from trunk. >>> >>> [[[ >>> Fix check-mime-type.pl for output changes to 'svnlook proplist'. >>> >>> The output format of 'svnlook proplist' was changed in revision 1416637. >>> >>> See also http://svn.haxx.se/dev/archive-2012-11/0510.shtml >>> >>> * contrib/hook-scripts/check-mime-type.pl: Fix reading process output >>> from >>> 'svnlook proplist'. >>> ]]] >> >> First of all thanks for your contribution. You're quite right that this is >> broken for 1.8.x and trunk. >> >> Unfortunately, your patch isn't quite right either. >> >> [description of parsing problems] > > One more issue: however you change the parser, it will break if > svnlook1.7 or older is used. It would be nice to DTRT in that case > (either error out or retain the old parser).