C.35 HgUpdateTask

Update the Mercurial repository's working directory or switch revisions. This is available for PHP 5.4 and higher.

Table C.36: Attributes

NameTypeDescriptionDefaultRequired
branchStringA specific branch to pull.n/aNo
cleanBooleanDiscard uncommitted changes.falseNo
quietBooleanWork silently unless an error occurs.falseNo
repositoryStringPath to Mercurial repository.n/aYes

C.35.1 Example

<property name="repo.dir" value="./repo.directory" />
<hgupdate repository="${repo.dir.resolved}" branch="dev"/>