🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
# 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}"/> ```