[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

RE: svn history | log for a given user?

From: Reedick, Andrew <jr9445_at_ATT.COM>
Date: Wed, 23 Apr 2008 15:25:02 -0500

> -----Original Message-----
> From: ettinger_at_gmail.com [mailto:ettinger_at_gmail.com] On Behalf Of
> Anthony Ettinger
> Sent: Wednesday, April 23, 2008 2:43 PM
> To: users_at_subversion.tigris.org
> Subject: svn history | log for a given user?
>
> I want to see my history in svn, is there a way to limit the results
> to only my changesets?
>
 

I'm not an xslt guru, but after 10 minutes at
http://www.w3schools.com/xsl/default.asp

1. Create this file with your name: foo.xsl
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:template match="/">
<html>
<body>
        <h2>Header</h2>
        <table border="1">
                <xsl:for-each select="log/logentry">
                <xsl:if test="author='YOUR_NAME_HERE'">
                <tr>
                        <td><xsl:value-of select="author"/></td>
                        <td><xsl:value-of select="msg"/></td>
                </tr>
                </xsl:if>
                </xsl:for-each>
        </table>
</body>
</html>
</xsl:template>

</xsl:stylesheet>

2. Run: svn log --xml svn://some/where > foo.xml

3. Edit foo.xml and add this line after the first line:
<?xml-stylesheet type="text/xsl" href="foo.xsl"?>

4. Open the xml in your favorite browser. Firefox url:
file:///C:/some/dir/on/my/drive/foo.xml

5. ??

6. Profit!

I'm not a big fan of step 3, where you insert a reference to the xslt in
to the xml data. Does anyone know a way around it?

*****

The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential, proprietary, and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from all computers. GA621

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-04-23 22:25:56 CEST

This is an archived mail posted to the Subversion Users mailing list.