You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by gr...@apache.org on 2004/12/20 04:42:48 UTC
svn commit: r122799 - /lenya/docu/tools/svn2changes.xsl
Author: gregor
Date: Sun Dec 19 19:42:46 2004
New Revision: 122799
URL: http://svn.apache.org/viewcvs?view=rev&rev=122799
Log:
Improved svn2changes stylesheet to show the version and link to a diff of the change.
Modified:
lenya/docu/tools/svn2changes.xsl
Modified: lenya/docu/tools/svn2changes.xsl
Url: http://svn.apache.org/viewcvs/lenya/docu/tools/svn2changes.xsl?view=diff&rev=122799&p1=lenya/docu/tools/svn2changes.xsl&r1=122798&p2=lenya/docu/tools/svn2changes.xsl&r2=122799
==============================================================================
--- lenya/docu/tools/svn2changes.xsl (original)
+++ lenya/docu/tools/svn2changes.xsl Sun Dec 19 19:42:46 2004
@@ -40,16 +40,29 @@
<xsl:template match="logentry">
<action>
<xsl:attribute name="dev"><xsl:value-of select="author"/></xsl:attribute>
- <xsl:attribute name="type">fix</xsl:attribute>
- <xsl:attribute name="context">
+ <xsl:variable name="type">
+ <xsl:choose>
+ <xsl:when test="contains(paths/path[1]/@action, 'A')">add</xsl:when>
+ <xsl:when test="contains(paths/path[1]/@action, 'M')">update</xsl:when>
+ <xsl:when test="contains(paths/path[1]/@action, 'R')">update</xsl:when>
+ </xsl:choose>
+ </xsl:variable>
+ <xsl:attribute name="type"><xsl:value-of select="$type"/></xsl:attribute>
+ <xsl:variable name="version">
<xsl:choose>
<xsl:when test="contains(paths/path[1], 'BRANCH_1_2_X')">1.2</xsl:when>
- <xsl:when test="contains(paths/path[1], 'lenya/trunk')">1.4</xsl:when>
- <xsl:when test="contains(paths/path[1], 'incubator/trunk')">1.0</xsl:when>
+ <xsl:when test="contains(paths/path[1], 'lenya/trunk') and contains(date, '2004')">1.4</xsl:when>
+ <xsl:when test="contains(date, '2003')">1.0</xsl:when>
+ <xsl:when test="contains(date, '2002')">0.8</xsl:when>
+ <xsl:when test="contains(paths/path[1], 'docu')">Docs</xsl:when>
+ <xsl:when test="contains(paths/path[1], 'site')">Site</xsl:when>
</xsl:choose>
- </xsl:attribute>
- <xsl:value-of select="msg"/><xsl:text> </xsl:text>
+ </xsl:variable>
+ <xsl:attribute name="context">
+ <xsl:value-of select="$version"/>
+ </xsl:attribute>[<xsl:value-of select="$version"/>]
+ <xsl:value-of select="msg"/><xsl:text> </xsl:text><link href="http://svn.apache.org/viewcvs.cgi?rev={@revision}&view=rev">Diff</link>
</action>
</xsl:template>
-
+
</xsl:stylesheet>
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org