C.25 HgAddTask

Add files to Mercurial repository on the next commit. This is available for PHP 5.4 and higher.

Table C.26: Attributes

NameTypeDescriptionDefaultRequired
repositoryStringPath to Mercurial repository.n/aYes

C.25.1 Example

<property name="repo.dir" value="./repo.directory" />
<resolvepath propertyName="repo.dir.resolved" file="${repo.dir}" />
<hgadd repository="${repo.dir.resolved}">
    <fileset dir="."/>
</hgadd>

C.25.2 Supported Nested Tags