C.39 HgUpdateTask

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

Table C.40: 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.39.1 Example

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