1 .\" Copyright (C) 2005, 2006, 2007 Arthur de Jong
3 .\" Redistribution and use in source and binary forms, with or without
4 .\" modification, are permitted provided that the following conditions
6 .\" 1. Redistributions of source code must retain the above copyright
7 .\" notice, this list of conditions and the following disclaimer.
8 .\" 2. Redistributions in binary form must reproduce the above copyright
9 .\" notice, this list of conditions and the following disclaimer in
10 .\" the documentation and/or other materials provided with the
12 .\" 3. The name of the author may not be used to endorse or promote
13 .\" products derived from this software without specific prior
14 .\" written permission.
16 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
17 .\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 .\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
20 .\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
22 .\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
23 .\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
24 .\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
25 .\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
26 .\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 .TH "svn2cl" "1" "Apr 2007" "Version 0.9" "User Commands"
30 svn2cl - Create a ChangeLog from a subversion log.
37 \fBsvn2cl\fP generates a classic GNU-style ChangeLog from the log messages in a subversion repository.
38 It acts as a wrapper around the `\fBsvn log\fP' command, parsing the XML output with an XSLT stylesheet.
39 Alternatively it can generate HTML output intended for use with the \fBsvn2html.css\fP style sheet that comes with \fBsvn2cl\fP.
41 In addition to its own options, it accepts and passes along most svn log options; see `\fBsvn help log\fP' for a list of those and their documentation.
42 If PATH is not given, \fBsvn2cl\fP will run svn log on the current directory, so it should do the right thing when run from the top of a subversion checkout of the project.
45 \fB\-\-strip\-prefix\fR=\fINAME\fR
46 Strip \fINAME\fR from the first part of all file names (e.g. project/trunk).
47 By defaults the current path inside the repository is stripped.
50 \fB\-\-linelen\fR=\fINUM\fR
51 Wrap lines at \fINUM\fR characters.
52 By default, lines are wrapped at 75 characters.
53 This option is ignored when the \-\-html option is specified.
56 \fB\-\-group\-by\-day\fR
57 This option causes all commit messages to be grouped by day, as long as all the changes are by the same author.
58 By default each message is listed separately with its own timestamp.
61 \fB\-\-separate\-daylogs\fR
62 Include a blank line between log entries when they are grouped by day.
63 Only useful with the \fB\-\-group\-by\-day\fR option.
64 This option is ignored when the \-\-html option is specified, edit \fBsvn2html.css\fP to tune the layout.
67 \fB\-i\fR, \fB\-\-include\-rev\fR
68 Include the subversion revision number in the ChangeLog.
69 If the \-\-html option is specified this is implied, edit \fBsvn2html.css\fP to turn it off.
72 \fB\-\-break\-before\-msg\fR[=\fINUM\fR]
73 Add a line break (or multiple line breadks) between the paths and the log message.
74 If the \-\-html option is specified this option is ignored, edit \fBsvn2html.css\fP to set spacing.
78 Newlines inside paragraphs are ignored and paragraphs are re-wrapped.
79 Paragraphs are separated by empty lines.
82 \fB\-\-title\fR=\fINAME\fR
83 If outputting an HTML file the \fINAME\fR is used as the title.
84 This option is ignored for normal text output.
87 \fB\-\-revision\-link\fR=\fINAME\fR
88 This option is used to generate links from the revision numbers in the generated HTML file.
89 If \fINAME\fR contains two hashes `\fB##\fP' that part will be replaced by the revision number, otherwise the revision number will be appended to \fINAME\fR.
90 Only the first occurrence of `\fB##\fP' will be replaced.
92 This option is ignored for normal text output.
95 \fB\-\-ignore\-message\-starting\fR=\fISTRING\fR
96 Any log messages that start with the specified \fISTRING\fR are ignored and will not show up in the output.
97 The STRING comparison is case sensitive.
100 \fB\-o\fR, \fB\-f\fR, \fB\-\-output\fR=\fIFILE\fR, \fB\-\-file\fR=\fIFILE\fR
101 Output ChangeLog to \fIFILE\fR instead of the default \fBChangeLog\fP (or \fBChangeLog.html\fP for HTML output).
105 Output ChangeLog to stdout instead of to a file.
108 \fB\-\-authors\fR=\fIFILE\fR
109 The \fIFILE\fR is used to map author names as exported by svn to full names.
110 See the section on AUTHORS FILES below for more information.
112 Note that the \-\-authors option can have poor performance in some cases.
116 Generate an HTML file containing a ChangeLog instead of the default text ChangeLog file.
117 This feature is still experimental.
118 The \fBsvn2html.css\fP file that is included in the distribution can be used to format the HTML.
121 \fB\-h\fR, \fB\-\-help\fR
122 Show short summary of options.
125 \fB\-V\fR, \fB\-\-version\fR
126 Show version of program.
129 Optional PATH arguments and the following options are passed directly to the `\fBsvn \-\-xml log\fP' command:
130 \fB\-r\fR, \fB\-\-revision\fR, \fB\-\-targets\fR, \fB\-\-stop\-on\-copy\fR, \fB\-\-username\fR, \fB\-\-password\fR, \fB\-\-no\-auth\-cache\fR, \fB\-\-non\-interactive\fR, \fB\-\-config\-dir\fR and \fB\-\-limit\fR.
132 See `\fBsvn help log\fP' for more information on these options.
136 An authors file is basically an XML file that should look something like:
138 <?xml version="1.0" encoding="utf\-8"?>
140 <author uid="arthur">
141 Arthur de Jong <arthur@ch.tudelft.nl>
146 svn2cl searches for <author> tags with the specified uid attribute.
147 The content from the author tag is substituted for the author name.
149 The <author> tag may also contain XML child tags which can be useful for embedding HTML into the result.
150 For this to work namespace information should be included for HTML output:
152 <?xml version="1.0" encoding="utf\-8"?>
153 <authors xmlns:html="http://www.w3.org/1999/xhtml">
154 <author uid="arthur">
155 Arthur de Jong <<html:b>arthur@ch.tudelft.nl</html:b>>
160 The svn2cl distribution contains a sample authors.xml file.
162 As a bonus a plain text authors file that looks like the following is automatically converted to the XML representation:
164 arthur:Arthur de Jong <arthur@ch.tudelft.nl>
169 Run svn log recursively on the current directory and generate a text ChangeLog file in the current directory for the entire log history:
174 Output the changes from the last week, while including revision numbers in the ChangeLog:
176 svn2cl \-i \-r "HEAD:{`date \-d '7 days ago' '+%F %T'`}"
179 (actually subversion will include the first revision before the specified period)
181 Generate an HTML changelog for svn://svn.example.com/project/trunk, removing "project/trunk" from the file names in the changelog.
182 Group all commits per day into one ChangeLog entry and only include changes from 2005:
184 svn2cl \-\-html \-\-strip\-prefix=project/trunk \-\-group\-by\-day \e
185 \-r '{2006\-01\-01}:{2005\-01\-01}' svn://svn.example.com/project/trunk
189 .BR `\fBsvn\ help\ log\fP'
192 Copyright \(co 2005, 2006, 2007 Arthur de Jong <arthur@ch.tudelft.nl>.
194 This is free software; see the license for copying conditions. There is NO
195 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.