{"id":86,"date":"2010-04-14T09:03:28","date_gmt":"2010-04-14T16:03:28","guid":{"rendered":"http:\/\/patternweaver.com\/blog\/?p=86"},"modified":"2010-04-14T09:03:28","modified_gmt":"2010-04-14T16:03:28","slug":"html-svn-changelog-output","status":"publish","type":"post","link":"http:\/\/patternweaver.com\/blog\/2010\/04\/html-svn-changelog-output\/","title":{"rendered":"HTML SVN changelog output"},"content":{"rendered":"<p>So, yesterday I sent a note about my blog to <a href=\"http:\/\/emonk.net\/\">Martin Pittenauer<\/a>, developer of SubEthaEdit. OK, yeah&#8230; but that&#8217;s not the strange part. So later on, I was looking for a tool to convert SVN logs to pretty printed html. After a few minutes of looking, <b>guess who<\/b> built an XSL script to do that very transformation. It was a few years old, and SVN&#8217;s XML format has apparently moved on, but a few tweaks got it back into shape. I offer this here as an updated version of his original.<\/p>\n<p><a href=\"http:\/\/patternweaver.com\/Downloads\/htmlLog.xsl.zip\">Download the XSL<\/a><\/p>\n<p>My most used scenario would be something like wanting to pull all the logs between my current revision and what&#8217;s in the repository at the head, both the know what&#8217;s about to drop on me, and to have a changelog after it does. So just drop that unzipped XSL file in your user home and execute the following:<br \/>\n<code>svn log -v --xml -rHEAD:$((`svn info | awk '\/^Revision:\/ {print $2}'` + 1)) | xsltproc -o .\/changlog.html ~\/htmlLog.xsl -<\/code><\/p>\n<p>then launch the log with:<br \/>\n<code>open .\/changlog.html<\/code><\/p>\n<p>That is all.. and thanks Martin, for repeatedly predicting what I&#8217;d need to do years ahead of time, and providing me with the tools I need to do it.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>So, yesterday I sent a note about my blog to Martin Pittenauer, developer of SubEthaEdit. OK, yeah&#8230; but that&#8217;s not the strange part. So later on, I was looking for a tool to convert SVN logs to pretty printed html. After a few minutes of looking, guess who built an XSL script to do that [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,10],"tags":[],"class_list":["post-86","post","type-post","status-publish","format-standard","hentry","category-shell-scripting","category-xsl"],"_links":{"self":[{"href":"http:\/\/patternweaver.com\/blog\/wp-json\/wp\/v2\/posts\/86","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/patternweaver.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/patternweaver.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/patternweaver.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/patternweaver.com\/blog\/wp-json\/wp\/v2\/comments?post=86"}],"version-history":[{"count":0,"href":"http:\/\/patternweaver.com\/blog\/wp-json\/wp\/v2\/posts\/86\/revisions"}],"wp:attachment":[{"href":"http:\/\/patternweaver.com\/blog\/wp-json\/wp\/v2\/media?parent=86"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/patternweaver.com\/blog\/wp-json\/wp\/v2\/categories?post=86"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/patternweaver.com\/blog\/wp-json\/wp\/v2\/tags?post=86"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}