r872283 | cmpilato | 2008-07-21 19:21:13 +0000 (Mon, 21 Jul 2008)
Partial fix for issue #3232: Ignore mixed EOL in ignored part
of commit message non-interactively provided.
NOTE: This does not fix the similar problems which can occur when
mixed line endings are provided interactively via the pop-up log
message editor. That's because svn_cl__edit_string_externally() does
its down translation/detranslation of the whole log message temporary
file, and isn't clueful enough to realize that part of that file's
contents will ultimately be ignored.
* subversion/svn/util.c
(svn_cl__get_log_message): Do log message translation after
truncated away the ignored parts. While here, rework this part of
the function to avoid using typecasts to route around the intended
const-ness of the data behind an svn_string_t.
* subversion/tests/cmdline/commit_tests.py
(commit_with_mixed_line_endings,
commit_with_mixed_line_endings_in_ignored_part): New tests.
(test_list): Add reference to new tests.
Patch by: Richard Hartmann <richih.mailinglist{_AT_}gmail.com>
me