rahulpathakgit / codeswarm

Automatically exported from code.google.com/p/codeswarm
GNU General Public License v3.0
0 stars 0 forks source link

Subversion log entrys are not differentied for conversion. #65

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What is the expected output? 

The xml output of convert_logs.py should not have the line of -'s as a
filename.

What do you see instead?

This is a filename and all subsequent entries are files all commited by the
first author found.

What version of the product are you using? On what operating system?

I'm using the subversion trunk on Gentoo Linux 2.6.31

Please provide any additional information below.

I've already fixed this issue and included the following patch:

Index: convert_logs/convert_logs.py
===================================================================
--- convert_logs/convert_logs.py        (revision 285)
+++ convert_logs/convert_logs.py        (working copy)
@@ -119,7 +119,7 @@
                     # Skip the 'Changed paths:' line and start reading in
the changed filenames.
                     file_handle.readline()
                     path = file_handle.readline()
-                    while len(path) > 1:
+                    while len(path) > 1 and not path.startswith(svn_sep):
                         ch_path = None
                         if opts.svn_log:
                             ch_path = path[5:].split("
(from")[0].replace("\n", "")
@@ -128,6 +128,9 @@
                             ch_path = path[2:].replace("\n",
"").replace("\"", "")
                         event_list.append(Event(ch_path, date, author))
                         path = file_handle.readline()
+                    else:
+                        line = path
+                        continue

                 line = file_handle.readline()
             file_handle.close()

Original issue reported on code.google.com by alund...@gmail.com on 29 Oct 2009 at 8:33