Constructing a topic from Subversion repository could fail if there are files with wrong EOL markers.
I've run into this error when tried to create a topic having file with \r\r\n (0D 0D 0A) markers.
It seems that Subversion counts lines by 0D markers but Codestriker's unidiff reader counts them by 0A marker so it uses wrong line count for that file and fails to parse Subversion's diff.
The problem persist in both 1.4.2 and 1.5.0pre Subversion on both Windows and Linux. It could be resolved by using external diff (at least on Linux) so using it should be recommended in codestriker documentation probably.
Here are first lines of problematic file's svn diff output.
Subversion's internal diff:
Index: editor/hlp/hid_sc_minimize.htm
===================================================================
--- editor/hlp/hid_sc_minimize.htm (revision 0)
+++ editor/hlp/hid_sc_minimize.htm (revision 4)
@@ -0,0 +1,32 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">^M+^M
+<HTML>^M+^M
+<HEAD>^M+^M
External diff (diff-cmd = diff):
Index: editor/hlp/hid_sc_minimize.htm
===================================================================
--- editor/hlp/hid_sc_minimize.htm (revision 0)
+++ editor/hlp/hid_sc_minimize.htm (revision 4)
@@ -0,0 +1,16 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">^M^M
+<HTML>^M^M
+<HEAD>^M^M
Nobody/Anonymous
None
None
Public
|
Date: 2007-07-01 23:34:40 PDT
|
|
Date: 2007-07-01 23:14:10 PDT
|
|
Date: 2007-07-01 23:06:10 PDT
|
|
Date: 2007-07-01 22:55:47 PDT
|
|
Date: 2007-06-29 20:00:18 PDT
|
|
Date: 2007-06-29 19:43:39 PDT
|
|
Date: 2007-06-29 14:36:59 PDT
|
|
Date: 2007-06-29 05:44:42 PDT
|
| Filename | Description | Download |
|---|---|---|
| 0d0d0a.dump | Repository dump | Download |