[PATCH 2 of 2] addremove: add --full/-f to force rematching of all removed files (status ! or R)

Peter Arrenbrecht peter.arrenbrecht at gmail.com
Tue Apr 8 06:29:30 CDT 2008


On Sun, Apr 6, 2008 at 6:55 PM, Patrick Mézard <pmezard at gmail.com> wrote:
> Peter Arrenbrecht a écrit :
>
> > # HG changeset patch
>  > # User Peter Arrenbrecht <peter.arrenbrecht at gmail.com>
>  > # Date 1207165043 -7200
>  > # Node ID b007e781b89191603950acfb228fe0d4de97d382
>  > # Parent  e43616661358fa319579c0d9db6d50d6a1d69d18
>  > addremove: add --full/-f to force rematching of all removed files (status ! or R)
>
>  --full is really ambiguous, could be understood as --all. What about --redo, --replay, --again or something like that ?

I agree. How about moving this after-the-fact matching out of
addremove altogether? Then we could use it both for fixing a bungled
`hg addrem -s`, as well as for running it on only explicitly added and
removed files. I propose

  hg findrenames [-I] [-X] [path...]

where paths and -I, -X limit the scope of the search.

This would have the added benefit of making the code simpler as we
could leave addrem -s alone.
-parren



More information about the Mercurial-devel mailing list