[PATCH] improved semantics for remove (issue438)

Matt Mackall mpm at selenic.com
Fri Mar 21 15:21:36 CDT 2008


Our discussion on IRC talked about reducing this discussion to a table
that lays out -all- the details. We ended up with something like this:

       C  M  A  !
none   RD W  W  R  unchanged files deleted, missing files removed
-f     RD RD R  R  all files deleted and removed
-A     W  W  W  R  missing files removed
-k     R  R  R  W  non-missing files removed
combo  R  R  R  R  ie -Ak, -kf, etc.

where R=remove from dirstate, D=delete from disk, and W=warn and the
columns correspond to hg status states. We could kill the -k flag and
further simplify this to:

       C  M  A  !
none   RD W  W  R
-f     RD RD R  R
-A     W  W  W  R
-Af    R  R  R  R

I personally can't really see a reason to have remove warn about missing
files like -k does. But if it ought to, we should consider putting a W
at none/!.

-- 
Mathematics is the supreme nostalgia of our time.



More information about the Mercurial-devel mailing list