# HG changeset patch
# User Alexander Plavin
+ An example showing how new (unknown) files are added + automatically by "hg add": +
++ \$ ls (re) + foo.c + \$ hg status (re) + ? foo.c + \$ hg add (re) + adding foo.c + \$ hg status (re) + A foo.c ++
Returns 0 if all files are successfully added.
@@ -1677,6 +1691,50 @@ files, see "hg forget".
+ -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 |
+ Note that remove never deletes files in Added [A] state from the + working directory, not even if option --force is specified. +
+Returns 0 on success, 1 if any warnings encountered.