[F006] Commit

This functionality aims to surround : hg commit and to adapt it for <ant> tags.

Shell command


hg commit [OPTION]... [FILE]...

aliases: ci

commit the specified files or all outstanding changes

    Commit changes to the given files into the repository. Unlike a
    centralized RCS, this operation is a local operation. See hg push for a
    way to actively distribute your changes.

    If a list of files is omitted, all changes reported by "hg status" will be
    committed.

    If you are committing the result of a merge, do not provide any filenames
    or -I/-X filters.

    If no commit message is specified, the configured editor is started to
    prompt you for a message.

    See 'hg help dates' for a list of formats valid for -d/--date.

options:

 -A --addremove     mark new/missing files as added/removed before committing
    --close-branch  mark a branch as closed, hiding it from the branch list
 -I --include       include names matching the given patterns
 -X --exclude       exclude names matching the given patterns
 -m --message       use <text> as commit message
 -l --logfile       read commit message from <file>
 -d --date          record datecode as commit date
 -u --user          record the specified user as committer

use "hg -v help commit" to show global options
                  

Parameters

Attribute Description Value Required
cmd hg command commit yes
dir directory to commit yes
message commit message no
logfile commit message - (message parameter has priority) no
date commit date no
user commit user no
addremove mark new/missing files as added/removed before committing true/false, yes/no, on/off no
closebranch mark a branch as closed, hiding it from the branch list true/false, yes/no, on/off no
Nested element Description Required
dirset resource collections no
arg command line argument value no

Examples


<hg cmd="commit" dir="." message="BJDOLLAR{message}" user="BJDOLLAR{user}">
  <dirset dir="/my/rootdirectory/dir/to/commit">
    <include name="BJDOLLAR{pattern.include}"/>
    <exclude name="BJDOLLAR{pattern.exclude}"/>
  </dirset>
                    </hg>