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

Re: Formatting issues in Commit Dialog

From: Konstantin Kolinko <knst.kolinko_at_gmail.com>
Date: Thu, 25 Dec 2008 04:45:12 +0300

> We have a server-side pre-commit hook that, when fails, outputs a message
> describing some correct usage. In Tortoise 1.5+ the formatting of the message
> gets horribly mangled when displayed in the commit dialog. The same message
> appears much closer to its original, intended, format in earlier versions of Tortoise.

I've reproduced it using TSVN 1.5.5, Build 14361 - 32 Bit on Windows XP SP3

I am attaching sample empty repository (with a hook added) that
demonstrates the behavior.

To reproduce,
1. rename pre-commit._at file in hooks directory to pre-commit.bat
(GMail did not allow sending it without renaming)
2. checkout rev.0 from the repository and try to add a file to it.

Several notes:
1. There are two variants of the message in my hooks directory, one
with LF endings, and another one with CRLF ones. The problem is
observed if you use the LF one.

If you use the CRLF one, the formatting is OK, but if I use the LF
one, it goes wild, see attached screenshot.

2. The message contains empty lines (\n\n in Perl code), but all those
are missing from "successful" output. The TSVN 1.4.5 picture from OP's
message shows one empty line.

Merry Xmas and Happy New Year to you all!

Best regards,
Konstantin Kolinko

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=757&dsMessageId=992009

To unsubscribe from this discussion, e-mail: [dev-unsubscribe_at_tortoisesvn.tigris.org].

image_1.5.5.png
Received on 2008-12-25 02:45:35 CET

This is an archived mail posted to the TortoiseSVN Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.