[PATCH 0 of 2] hg remove --keep + --after cleaner semantic

Mathieu Clabaut mathieu.clabaut at gmail.com
Mon Dec 24 10:59:57 CST 2007

On Dec 8, 2007 3:40 PM,  <mathieu.clabaut at gmail.com> wrote:
> hg remove has now 3 options : --after, --keep and --force
> --after only removes file already deleted
> --keep always prevent the removed files to be deleted
> --force forces removing and deletion of file otherwise not removed
> Note that --keep has precedence over --force
> Before, --after was used either for keeping or for removing after, and it didn't allow to keep locally modified files.
> Some minor changes were done to test-remove

I was  bitten once again by this bug (of course I can counterfeit it
by copying the file before doing 'hg rm' and copying it back in place,
which is quite tedious).

Any opinion on the available patches (patches also attached to


More information about the Mercurial-devel mailing list