Chia-liang Kao (高嘉良) > SVK-v2.0.1 > SVK::Log::Filter::XML

Download:
SVK-v2.0.1.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  57
Open  12
View/Report Bugs
Source   Latest Release: SVK-v2.2.3

NAME ^

SVK::Log::Filter::XML - display log messages in XML format

SYNOPSIS ^

    > svk log --xml
    <?xml version="1.0" encoding="utf-8"?>
    <log>
    <logentry revision="1234" original="456">
    <author>author</author>
    <date>2006-05-16T15:43:28.889532Z</date>
    <msg>This is the commit message for the revision.</msg>
    </logentry>
    </log>
    > svk log --output xml
    ...

DESCRIPTION ^

The XML filter is an output filter for displaying log messages in XML format. The organization of the XML format should be self-explanatory after a little experimentation. The format is designed to be compatible with Subversion's XML output, so you should be able to use tools like http://ch.tudelft.nl/~arthur/svn2cl/ without any modification. However, since SVK supports arbitary log filters (see SVK::Log::Filter for details on writing one), it may be easier to write your own output format than to process the XML.

This filter is invoked implicitly when you specify the "--xml" argument to SVK's log command. Two arguments to the log command modify XML's behavior.

quiet

Providing this command-line option to the log command prevents the XML filter from displaying the contents of the log message. All other information is displayed as usual.

verbose

Providing this command-line option to the log command makes the XML filter display history information for each revision. The history includes the kind of modification (modify, add, delete) and any copy history for each path that was modified in the revision.

STASH/PROPERTY MODIFICATIONS ^

XML leaves all properties and the stash intact.

syntax highlighting: