Issue #750 new

Diff is incorrect in RSS feed with XML (and other things)

Tavis Elliott
created an issue

We have some XML files (and javascript/css) in our Mercurial repository under RhodeCode. Now that the simply wonderful ability to show diffs in the RSS feed is in place, we found an issue. Consider the following, the diff section of the RSS source:

<pre>Adding reference to source files.

--- a/.idea/libraries/gwt_incubator_2_0_1.xml   Tue Jan 29 20:58:22 2013 -0800
+++ b/.idea/libraries/gwt_incubator_2_0_1.xml   Tue Jan 29 00:55:47 2013 -0800
@@ -4,6 +4,8 @@
       <root url="jar://$USER_HOME$/.gradle/caches/artifacts-14/filestore/!/" />
     <JAVADOC />
-    <SOURCES />
+    <SOURCES>
+      <root url="jar://$USER_HOME$/.gradle/caches/artifacts-14/filestore/!/" />
+    </SOURCES>
\ No newline at end of file

The RSS item for that shows up in Thunderbird like this:

 M .idea/libraries/gwt_incubator_2_0_1.xml (3 lines added, 1 lines removed)

diff --git a/.idea/libraries/gwt_incubator_2_0_1.xml b/.idea/libraries/gwt_incubator_2_0_1.xml
--- a/.idea/libraries/gwt_incubator_2_0_1.xml
+++ b/.idea/libraries/gwt_incubator_2_0_1.xml
@@ -4,6 +4,8 @@


Comments (9)

  1. Jay Gindin

    Any chance this will get looked at for the next point release? We must have a lot of code that triggers this bug.

    (I took a cursory glance at the code, and wasn't sure what part of the code is responsible for the RSS feeds.)

  2. Tavis Elliott reporter

    I was unable to complete the test, sorry. When I modified the python and restarted the server the entire world blew up and the server would not start (I believe it was unrelated to my change, but I was unwilling to risk another outage).

    This is not only a problem with Thunderbird btw, Outlook has the same issue, which leads me to believe that <pre> is not enough, it needs to have <code>.

  3. Tavis Elliott reporter

    Yes, I found the appropriate location in the code. Like I said though, I changed that .py file and when I tried to restart the server it wouldn't come up for several minutes, with what looked like library linkage problems (I can't recall the details now). After restoring the files it still didn't come up, and I have no idea what actually made it start up. Do I need to do something after changing to get the server to start correctly?

  4. Marcin Kuzminski repo owner

    changing the source code and restarting is enought, it must have been broken before the change if it didn't start. I dont have an outlook, neither thunderbird to test this

  5. Log in to comment