>>> "SB" == Sietse Brouwer <sbbrou...@gmail.com> writes:

> Hi Uwe, hi all,
> To forget all added files, you can use a fileset (`hg help fileset):

> ```
> hg forget 'set: added()'
> ```

> To put all removed files back, use

> ```
> hg revert 'set: removed()'
> ```


Right this is why I proposed a combined alias for both

unaddremove = !hg forget "set:added()" && hg forget "set:removed()"


> If you want to tell Mercurial that removed files should have status missing
> (!) instead of removed (R) is a bit trickier: it happens in three steps,
> and we need to use the shell as well as Mercurial. Here is an example using
> Posix shell:

Ok that did not occur to me so far, I have to think about it, if I need
it, but thanks

Uwe 

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
Mercurial mailing list
Mercurial@lists.mercurial-scm.org
https://lists.mercurial-scm.org/mailman/listinfo/mercurial

Reply via email to