ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
# C.34 HgLogTask Show revision history of entire Mercurial repository or files, or limit to a number of revisions. Optionally store the history to a phing property. This is available for PHP 5.4 and higher. Table C.35:聽Attributes NameTypeDescriptionDefaultRequired`format``String`Display with template, e.g. "{rev}\\n", "{branch}" etc.n/aNo`maxCount``Integer`Number of commits to show/limit.n/aNo`outputProperty``String`Property name to set output value to from the execution.n/aNo`repository``String`Path to Mercurial repository.n/aYes`revision``String`Show the specified revision or range.n/aYes C.34.1 Example ``` <property name="repo.dir" value="./repo.directory" /> <resolvepath propertyName="repo.dir.resolved" file="${repo.dir}" /> <hglog maxCount="1" format="{files}\n" outputproperty="hgfiles" repository="${repo.dir.resolved}"/> ```