C.28 HgCommitTask

Commit changes to a Mercurial repository. This is available for PHP 5.4 and higher.

Table C.29: Attributes

NameTypeDescriptionDefaultRequired
messageStringCommit message.n/aYes
quietBooleanWork silently unless an error occurs.falseNo
repositoryStringPath to Mercurial repository.n/aNo
userStringUser to record as the committer.n/aNo

C.28.1 Example

<property name="repo.dir" value="./repo.directory" />
<resolvepath propertyName="repo.dir.resolved" file="${repo.dir}" />
<hgcommit message="[ci skip] Compress .js files." user="phingbot" repository="${repo.dir.resolved}"/>