ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
# C.98 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.131:聽Attributes NameTypeDescriptionDefaultRequired`svnpath``String`Path to Subversion binary/usr/bin/svnNo`workingcopy``String`Working copy directorynoneOne of the two`repositoryurl``String`URL of remote repositorynone`username``String`A username used to connect to the SVN servernoneNo`password``String`A password used to connect to the SVN servernoneNo`propertyname``String`Name of property to usesvn.listNo`limit``Integer`Limits the number of items to get back from the commandn/aNo C.98.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 ... ```