• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

ChangeLogH A D13-Sep-201316.3 KiB662387

NEWSH A D13-Sep-20134.1 KiB13496

READMEH A D13-Sep-20134.1 KiB10381

TODOH A D06-Apr-2008457 1110

authors.xmlH A D12-Jun-2009380 1312

svn2cl.1H A D13-Sep-20138.8 KiB223162

svn2cl.shH A D03-May-202211.8 KiB354284

svn2cl.xslH A D13-Sep-201315.7 KiB458290

svn2html.cssH A D07-Oct-20091.2 KiB8067

svn2html.xslH A D13-Sep-201311.4 KiB319208

README

1   svn2cl - create a ChangeLog from a subversion log
2
3   Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2013 Arthur de Jong
4
5   Redistribution and use in source and binary forms, with or without
6   modification, are permitted provided that the following conditions
7   are met:
8   1. Redistributions of source code must retain the above copyright
9      notice, this list of conditions and the following disclaimer.
10   2. Redistributions in binary form must reproduce the above copyright
11      notice, this list of conditions and the following disclaimer in
12      the documentation and/or other materials provided with the
13      distribution.
14   3. The name of the author may not be used to endorse or promote
15      products derived from this software without specific prior
16      written permission.
17
18   THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
19   IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21   ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
22   DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
24   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
26   IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
27   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
28   IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29
30
31INTRODUCTION
32============
33
34svn2cl is a simple xsl transformation and shell script wrapper for generating
35a classic GNU-style ChangeLog from a subversion repository log. It is made
36from several changelog-like scripts using common xslt constructs found in
37different places.
38
39I made it because it was the only thing that I missed from cvs after I
40converted a repository to subversion. I used cvs2cl before.
41
42INSTALLING SVN2CL
43=================
44
45Just unpack the tarball in some directory (e.g. /opt/svn2cl-0.14)
46and symlink the svn2cl.sh script in your path somewhere (e.g.
47ln -s /opt/svn2cl-0.14/svn2cl.sh /usr/local/bin/svn2cl).
48
49Note: Be sure to keep the svn2cl.xsl file in the same directory as the
50svn2cl.sh script as the script looks for it there (symlinking is ok).
51
52USING SVN2CL IN AN ANT TARGET
53=============================
54
55It is possible to use svn2cl in an ant target with a snippet like:
56
57<tempfile property="info.xml.file"
58          prefix="info-" suffix=".xml"
59          destdir="${java.io.tmpdir}" />
60<java classname="org.tmatesoft.svn.cli.SVN" dir="${basedir}"
61      fork="true" output="${info.xml.file}"
62      classpathref="javasvn-classpath">
63 <arg line="log --xml --verbose" />
64</java>
65<xslt in="${info.xml.file}" out="ChangeLog" style="svn2cl.xsl">
66 <param name="strip-prefix" expression="trunk/myProject/" />
67 <param name="groupbyday" expression="yes" />
68 <param name="separate-daylogs" expression="yes" />
69 <param name="include-rev" expression="yes" />
70 <param name="breakbeforemsg" expression="yes" />
71 <param name="reparagraph" expression="yes" />
72</xslt>
73<delete file="${info.xml.file}" />
74
75Although it seems that currently the xslt processor that is used by ant
76inserts newlines in places it shouldn't. This can be worked around by
77replacing &newl; throughout the xsl files by &#xa;.
78
79WINDOWS PORT
80============
81
82A VBScript port of the wrapper shell script has been made by Iwasa Kazmi,
83which allows running svn2cl on Microsoft Windows without a POSIX compatibility
84layer and xsltproc. More information is available here:
85http://www.cosmo-system.jp/iwasa/svn2clwin.html
86
87NOTES
88=====
89
90The log is performed on the current directory '.' unless you specify URL
91and/or PATH parameters. Before generating the ChangeLog you may want to make
92your working copy up to date with 'svn update' (non-recursive update will do)
93or pass --revision HEAD:1 as a parameter to svn2cl.sh.
94
95There will not be very frequent new releases but if there are they can be
96found at: http://arthurdejong.org/svn2cl/
97
98FEEDBACK AND BUG REPORTS
99========================
100
101If you have any questions about svn2cl or would like to report a bug please
102send an email to svn2cl-users@lists.arthurdejong.org.
103