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

Re: Pre commit hook being ignored

From: Purple Streak <mrpurplestreak_at_googlemail.com>
Date: Fri, 25 Sep 2009 11:54:57 +0100

2009/9/24 Purple Streak <mrpurplestreak_at_googlemail.com>:
> 2009/9/23 Andrey Repin <anrdaemon_at_freemail.ru>:
>> Greetings, Purple Streak!
>>
>>> This was in the same working copy and I tried a couple more just to
>>> confirm.  This was running against the svn:// protocol, so it would
>>> seem svnserve doesn't run the hook and fail the commit when the
>>> request comes from AnkhSVN.
>>
>>> How can that be?
>>
>> Try much shorter log message. 1 symbol.
>> Ankh probably adding CRLF marks, making log record longer than expected.
>
> As yes - 1 charater does fail.  I'll try what David sugests as well.
> Odd as I'd thought of that and checked the message that had gone in
> and it only looked to be just the 4 characters, so it'll be
> interesting to find out what I get.
>

Yep - Ankh adds an extra newline (LF or CRLF - didn't check which
exactly). Simple fix in the trigger to remove extra whitespace.
Sorry - should have thought of that myself. Brain fade...

Cheers,
Purple

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-09-25 12:55:51 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.