ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
# C.97 SvnListTask The `SvnListTask` stores the output of a svn list 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.130:聽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`orderDescending``Boolean`Sets whether to reverse the order of the listed items`false`No C.97.1 Example ``` <svnlist svnpath="/usr/bin/svn" workingcopy="/home/user/svnwc" propertyname="svn.list"/> ``` ``` <svnlist svnpath="/usr/bin/svn" repositoryurl="http://svn.example.com/myrepo/tags" orderDescending="true" limit="10" /> ``` The latter example could produce a list of your tags like this: ``` revision | author | date | item 4028 | tony | May 19 18:31 | Release_2.9.1.7 4026 | tony | May 18 14:33 | Release_2.9.1.6 4023 | tony | May 16 15:53 | Release_2.9.1.5 4018 | tony | May 13 11:55 | Release_2.9.1.4 4005 | tony | Apr 27 12:09 | Release_2.9.1.3 ... ```