> Ah well not really.

>  `hg addremove` add new files and removes deleted once, so say adds 10 new 
> ones and removes 8 deleted ones.

> `hg forget` only forgets files that you explicitly specify.

> Which makes it cumbersome to use in that use case 

I found two solutions.

    1. An alias in .tcshrc
       alias myhgundoaddremove 'hg status --added --removed --no-status | xargs 
hg forget'

    2. An alias in .hgrc
       unaddremove = !hg forget "set:added()" && hg forget "set:removed()"

-- 
I strongly condemn Hamas heinous despicable pogroms/atrocities on Israel
I strongly condemn Putin's war of aggression against Ukraine.
I support to deliver weapons to Ukraine's military. 
I support the EU and NATO membership of Ukraine. 

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