Home > 開発環境 > svn log –xml

svn log –xml

  • 2007-03-28 (水) 15:46
  • 開発環境
  • このエントリーをはてなブックマークに追加
この記事の所要時間: 131

Yesterday I was struggling trying to get svn log to display the results for a certain user and this was very annoying.. then I jumped on #svn on freenode, and someone mentionned svn log --xml

SVN log-per-user parser using SimpleXML - David Coallier

svn logをXMLで出力できるんですね。知りませんでした。。。

試しにCakePHP1.1.xリポジトリのログを出力してみました。

$ svn log --verbose --limit 10 --xml
XML:
  1. <?xml version="1.0"?>
  2. <log>
  3. <logentry
  4.    revision="4693">
  5. <author>phpnut</author>
  6. <date>2007-03-27T04:32:47.490451Z</date>
  7. <paths>
  8. <path
  9.    action="M">/branches/1.1.x.x/cake/config/config.php</path>
  10. <path
  11.    action="M">/trunk/cake/1.1.x.x/cake/config/config.php</path>
  12. <path
  13.    action="M">/branches/1.1.x.x/cake/VERSION.txt</path>
  14. <path
  15.    action="M">/trunk/cake/1.1.x.x/cake/libs/session.php</path>
  16. <path
  17.    action="M">/trunk/cake/1.1.x.x/cake/VERSION.txt</path>
  18. </paths>
  19. <msg>Merging fixes into the trunk
  20.  
  21. Revision: [4692]
  22. Merging fix for Ticket #2295</msg>
  23. </logentry>
  24. </log>

SimpleXmlElementなんかでパースすればすぐに使えそうです。さて何に使おうかなー。

コメント (Close):1

Mr. Capone-E 09-08-31 (月) 8:59

How long did it take you to write this blog.

トラックバック:0

このエントリーのトラックバックURL
http://www.1x1.jp/blog/2007/03/subversion_log_xml.html/trackback
Listed below are links to weblogs that reference
svn log –xml from Shin x blog

Home > 開発環境 > svn log –xml

検索
フィード
メタ情報

Return to page top