/ Published in: SVN
I use this to scan an entire repository for an issue number and print out all of the revisions that reference it.
XSLT is far faster now then it was in the old days. Xalan (not known as the fastest engine) can run this on my 10mb log file in under 2 seconds.
XSLT is far faster now then it was in the old days. Xalan (not known as the fastest engine) can run this on my 10mb log file in under 2 seconds.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:param name="issue" select="'valuenotentered'"/> <xsl:output method="text"/> <xsl:strip-space elements="*"/> <xsl:template match="log/logentry"> </xsl:template> <xsl:template match="log/logentry[contains(msg, $issue)]"> <xsl:value-of select="@revision"/> <xsl:text> </xsl:text> </xsl:template> </xsl:stylesheet>