C.74 SvnLogTask
Prev | Appendix C. Optional tasks | Next

## C.74 SvnLogTask

The `SvnLogTask` stores the output of a svn log command on a workingcopy or repositoryurl in a property. The result will be stored in an array, one string that is separated by ' | ' (in words: space pipe space) for easy parsing.

Table C.103: Attributes

Name | Type | Description | Default | Required
--- | --- | --- | --- | ---
`svnpath` | `String` | Path to Subversion binary | /usr/bin/svn | No
`workingcopy` | `String` | Working copy directory | none | One of the two
`repositoryurl` | `String` | URL of remote repository | none
`username` | `String` | A username used to connect to the SVN server | none | No
`password` | `String` | A password used to connect to the SVN server | none | No
`propertyname` | `String` | Name of property to use | svn.list | No
`forceCompatible` | `Boolean` | Deprecated: Sets whether to force compatibility with older SVN versions (< 1.2) | `true` | No
`limit` | `Integer` | Limits the number of items to get back from the command | n/a | No

### C.74.1 Example

    <svnlog svnpath="/usr/bin/svn" workingcopy="/home/user/svnwc" propertyname="svn.log"/>

    <svnlog svnpath="/usr/bin/svn" repositoryurl="http://svn.example.com/myrepo/trunk" limit="10" />

The latter example could produce a history of the latest revisions in the trunk:

    4033 | tony  | 2011-05-23T14:21:12.496274Z  | some svn commit comment
    4032 | tony  | 2011-05-23T13:24:46.496265Z  | some svn commit comment
    4031 | tony  | 2011-05-23T09:23:28.093167Z  | some svn commit comment
    ...

Prev | Up | Next
C.73 SvnListTask | Home | C.75 SvnUpdateTask