[F005] Remove
This functionality aims to surround : hg remove and to adapt it for <ant> tags.
Shell command
hg remove [OPTION]... FILE...
aliases: rm
remove the specified files on the next commit
Schedule the indicated files for removal from the repository.
This only removes files from the current branch, not from the entire
project history. -A/--after can be used to remove only files that have
already been deleted, -f/--force can be used to force deletion, and -Af
can be used to remove files from the next revision without deleting them
from the working directory.
The following table details the behavior of remove for different file
states (columns) and option combinations (rows). The file states are Added
[A], Clean [C], Modified [M] and Missing [!] (as reported by hg status).
The actions are Warn, Remove (from branch) and Delete (from disk):
A C M !
none W RD W R
-f R RD RD R
-A W W W R
-Af R R R R
This command schedules the files to be removed at the next commit. To undo
a remove before that, see hg revert.
options:
-A --after record delete for missing files
-f --force remove (and delete) file even if added or modified
-I --include include names matching the given patterns
-X --exclude exclude names matching the given patterns
use "hg -v help remove" to show global options
Parameters
| Attribute | Description | Value | Required |
|---|---|---|---|
| cmd | hg command | remove | yes |
| dir | directory to remove | yes | |
| after | record delete for missing files | true/false, yes/no, on/off | no |
| force | remove (and delete) file even if added or modified | true/false, yes/no, on/off | no |
| Nested element | Description | Required | |
| dirset | resource collections | no | |
| arg | command line argument value | no | |
Examples
<hg cmd="remove" dir=".">
<dirset dir="/my/rootdirectory/dir/where/remove" force="true">
<include name="BJDOLLAR{pattern.include}"/>
</dirset>
</hg>