How to export the Subversion log to spreadsheet

lamcro picture lamcro · Jul 11, 2012 · Viewed 31.9k times · Source

Is there a way to export the Subversion log messages to a spreadsheet(excel, csv, etc.) format?

When copying from the Log Messages window in TortoiseSVN, it pastes text in the following format:

Revision: 174
Author: CARDINALHEALTH\enrique.colon
Date: Wednesday, July 11, 2012 9:37:02 AM
Message: CR #58514
----
Modified : /trunk/ob_progs/utility/connect_peek

I could create a script to reformat this to CSV, if necessary. But I really don't want to :(

Answer

lamcro picture lamcro · Jul 12, 2013
  1. Use the following Subversion command to create an xml file out of the repository's log:

    svn log -v --xml > repository_log.xml

  2. Import the xml file into an Excel spreadsheet (not sure if it will work with LibreOffice/OpenOffice), e.g. from cmd:

    start excel repository_log.xml

  3. You can then save it as a spreadsheet.

That's it!